Interface IDicomServer
- Namespace
- FellowOakDicom.Network
- Assembly
- fo-dicom.core.dll
Interface representing a DICOM server instance.
public interface IDicomServer : IDisposable
- Inherited Members
- Extension Methods
Properties
Exception
Gets the exception that was thrown if the server failed to listen.
Exception Exception { get; }
Property Value
IPAddress
Gets the IP address(es) the server listens to.
string IPAddress { get; }
Property Value
IsListening
Gets a value indicating whether the server is actively listening for client connections.
bool IsListening { get; }
Property Value
Logger
Gets the logger used by DicomServer<T>
ILogger Logger { get; set; }
Property Value
Options
Gets the options to control behavior of DicomService base class. Gets the port to which the server is listening.
DicomServiceOptions Options { get; }
Property Value
Port
Gets the port to which the server is listening.
int Port { get; }
Property Value
Registration
Gets the DICOM server registration ticket with the central registry. The registry prevents multiple DICOM servers from being created for the same IP address and port. This registration must be disposed alongside the DICOM server itself.
DicomServerRegistration Registration { get; set; }
Property Value
ServiceScope
Gets the service scope that will live as long as the DICOM server lives. Must be disposed alongside the DicomServer instance.
IServiceScope ServiceScope { get; set; }
Property Value
Methods
StartAsync(string, int, ITlsAcceptor, Encoding, DicomServiceOptions, object, DicomServerOptions)
Starts the DICOM server listening for connections on the specified IP address(es) and port.
Task StartAsync(string ipAddress, int port, ITlsAcceptor tlsAcceptor, Encoding fallbackEncoding, DicomServiceOptions serviceOptions, object userState, DicomServerOptions serverOptions)
Parameters
ipAddress
stringIP address(es) for the server to listen to.
port
intPort to which the server should be listening.
tlsAcceptor
ITlsAcceptorHandler to accept secure connections.
fallbackEncoding
EncodingEncoding to apply if no encoding is identified.
serviceOptions
DicomServiceOptionsService options
userState
objectUser state to be shared with the connected services.
serverOptions
DicomServerOptionsServer options
Returns
Stop()
Stop server from further listening.
void Stop()