public GeneralPurposeDicomServerService(IConfiguration configuration, IDicomServerFactory serverFactory, DicomServiceBuilder builder) { _serverFactory = serverFactory; // TODO: get settings _configuration = configuration; _serviceBuilder = builder; }
public void Setup() { var services = new ServiceCollection(); services.AddFellowOakDicom() .AddLogManager <NullLoggerManager>() .Configure <DicomClientOptions>(o => { o.AssociationLingerTimeoutInMs = 0; }) .Configure <DicomServiceOptions>(o => { o.LogDataPDUs = false; o.LogDimseDatasets = false; o.MaxPDULength = 512 * 1024 * 1024; }); var serviceProvider = services.BuildServiceProvider(); _dicomServerFactory = serviceProvider.GetRequiredService <IDicomServerFactory>(); _dicomClientFactory = serviceProvider.GetRequiredService <IDicomClientFactory>(); _rootPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); _sampleFile = DicomFile.Open(Path.Combine(_rootPath, "Data\\GH355.dcm")); _cStoreServer = _dicomServerFactory.Create <NopCStoreProvider>(11112); _cEchoServer = _dicomServerFactory.Create <DicomCEchoProvider>(11113); }
public DicomServerService(IConfiguration configuration, IDicomServerFactory serverFactory) { _serverFactory = serverFactory; // TODO: get settings _configuration = configuration; }
protected override void ProcessImpl(Connection connection) { base.ProcessImpl(connection); Connection.toDicom.CollectionChanged += ToDicomChanged; _dicomServerFactory = new DicomServerFactory(Connection, _logger); }