Class DefaultDicomServerRegistry
- Namespace
- FellowOakDicom.Network
- Assembly
- fo-dicom.core.dll
public class DefaultDicomServerRegistry : IDicomServerRegistry
- Inheritance
-
DefaultDicomServerRegistry
- Implements
- Inherited Members
- Extension Methods
Constructors
DefaultDicomServerRegistry()
public DefaultDicomServerRegistry()
Methods
Get(int, string)
Gets a running DICOM server listening on the provided port, or NULL if no such DICOM server exists.
public DicomServerRegistration Get(int port, string ipAddress = "0.0.0.0")
Parameters
Returns
- DicomServerRegistration
A DICOM server registration or null
IsAvailable(int, string)
Checks whether listening to the provided port at the provided IP address is still possible
public bool IsAvailable(int port, string ipAddress = "0.0.0.0")
Parameters
Returns
- bool
True when a new DICOM server can be set up for that IP address and port
Register(IDicomServer, Task)
Register a new DICOM server
public DicomServerRegistration Register(IDicomServer dicomServer, Task task)
Parameters
dicomServerIDicomServerThe DICOM server that is now running
taskTaskThe task that represents the running of the DICOM server
Returns
Unregister(DicomServerRegistration)
Unregisters a DICOM server. This needs to happen when the DICOM server is stopped.
public void Unregister(DicomServerRegistration registration)
Parameters
registrationDicomServerRegistration