Skip to content

Commit

Permalink
Fixed classifier constructor signature
Browse files Browse the repository at this point in the history
  • Loading branch information
tznind committed Feb 10, 2022
1 parent 174afa1 commit 58db368
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class IsIdentifiableHost : MicroserviceHost
throw new ArgumentException("A DataDirectory must be set",nameof(globals));

var objectFactory = new MicroserviceObjectFactory();
var classifier = objectFactory.CreateInstance<IClassifier>(classifierTypename, typeof(IClassifier).Assembly, new DirectoryInfo(dataDirectory), serviceOpts);
var classifier = objectFactory.CreateInstance<IClassifier>(classifierTypename, typeof(IClassifier).Assembly, new DirectoryInfo(dataDirectory), globals.IsIdentifiableBaseOptions);

if(classifier == null)
throw new TypeLoadException($"Could not find IClassifier Type { classifierTypename }");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
using System.IO;
using System.IO.Abstractions;
using IsIdentifiable.Failures;
using IsIdentifiable.Options;
using IsIdentifiable.Reporting;
using Smi.Common.Options;

namespace Microservices.IsIdentifiable.Service
{
public class RejectAllClassifier: Classifier
{
public RejectAllClassifier(DirectoryInfo dataDirectory, IsIdentifiableServiceOptions _) : base(dataDirectory)
public RejectAllClassifier(DirectoryInfo dataDirectory, IsIdentifiableDicomFileOptions _) : base(dataDirectory)
{
}

Expand Down

0 comments on commit 58db368

Please sign in to comment.