Class DicomServerFactory
- Namespace
- FellowOakDicom.Network
- Assembly
- fo-dicom.core.dll
public static class DicomServerFactory
- Inheritance
-
DicomServerFactory
- Inherited Members
Methods
Create<T>(int, ITlsAcceptor, Encoding, ILogger, object, Action<DicomServerOptions>)
Creates a DICOM server object out of DI-container.
public static IDicomServer Create<T>(int port, ITlsAcceptor tlsAcceptor = null, Encoding fallbackEncoding = null, ILogger logger = null, object userState = null, Action<DicomServerOptions> configure = null) where T : DicomService, IDicomServiceProvider
Parameters
portintPort to listen to.
tlsAcceptorITlsAcceptorHandler to accept authenticated connections.
fallbackEncodingEncodingFallback encoding.
loggerILoggerLogger, if null default logger will be applied.
userStateobjectOptional parameters
configureAction<DicomServerOptions>Configures the service options of the newly created DICOM server
Returns
- IDicomServer
An instance of DicomServer<T>, that starts listening for connections in the background.
Type Parameters
TDICOM service that the server should manage.
Create<T>(string, int, ITlsAcceptor, Encoding, ILogger, object, Action<DicomServerOptions>)
Creates a DICOM server object out of DI-container.
public static IDicomServer Create<T>(string ipAddress, int port, ITlsAcceptor tlsAcceptor = null, Encoding fallbackEncoding = null, ILogger logger = null, object userState = null, Action<DicomServerOptions> configure = null) where T : DicomService, IDicomServiceProvider
Parameters
ipAddressstringIP address(es) to listen to. Value
<pre><code class="lang-csharp">null</code></pre>applies default, IPv4Any.
portintPort to listen to.
tlsAcceptorITlsAcceptorHandler to accept authenticated connections.
fallbackEncodingEncodingFallback encoding.
loggerILoggerLogger, if null default logger will be applied.
userStateobjectOptional parameters
configureAction<DicomServerOptions>Configures the service options of the newly created DICOM server
Returns
- IDicomServer
An instance of DicomServer<T>, that starts listening for connections in the background.
Type Parameters
TDICOM service that the server should manage.
Create<T, TServer>(string, int, object, ITlsAcceptor, Encoding, ILogger, Action<DicomServerOptions>)
Creates a DICOM server object out of DI-container.
public static IDicomServer Create<T, TServer>(string ipAddress, int port, object userState = null, ITlsAcceptor tlsAcceptor = null, Encoding fallbackEncoding = null, ILogger logger = null, Action<DicomServerOptions> configure = null) where T : DicomService, IDicomServiceProvider where TServer : IDicomServer<T>
Parameters
ipAddressstringIP address(es) to listen to. Value
<pre><code class="lang-csharp">null</code></pre>applies default, IPv4Any.
portintPort to listen to.
userStateobjectOptional optional parameters.
tlsAcceptorITlsAcceptorHandler to accept authenticated connections.
fallbackEncodingEncodingFallback encoding.
loggerILoggerLogger, if null default logger will be applied.
configureAction<DicomServerOptions>Configures the service options of the newly created DICOM server
Returns
- IDicomServer
An instance of
TServer, that starts listening for connections in the background.
Type Parameters
TDICOM service that the server should manage.
TServerConcrete DICOM server type to be returned.