Interface IDicomServerRegistry
Register where we keep the running DICOM servers
Namespace: FellowOakDicom.Network
Assembly: fo-dicom.core.dll
Syntax
public interface IDicomServerRegistry
Methods
Get(Int32, String)
Gets a running DICOM server listening on the provided port, or NULL if no such DICOM server exists.
Declaration
DicomServerRegistration Get(int port, string ipAddress = "0.0.0.0")
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | port | The port |
System.String | ipAddress | The IP address |
Returns
Type | Description |
---|---|
DicomServerRegistration | A DICOM server registration or null |
IsAvailable(Int32, String)
Checks whether listening to the provided port at the provided IP address is still possible
Declaration
bool IsAvailable(int port, string ipAddress = "0.0.0.0")
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | port | The port |
System.String | ipAddress | The IP address |
Returns
Type | Description |
---|---|
System.Boolean | True when a new DICOM server can be set up for that IP address and port |
Register(IDicomServer, Task)
Register a new DICOM server
Declaration
DicomServerRegistration Register(IDicomServer dicomServer, Task task)
Parameters
Type | Name | Description |
---|---|---|
IDicomServer | dicomServer | The DICOM server that is now running |
System.Threading.Tasks.Task | task | The task that represents the running of the DICOM server |
Returns
Type | Description |
---|---|
DicomServerRegistration |
Unregister(DicomServerRegistration)
Unregisters a DICOM server. This needs to happen when the DICOM server is stopped.
Declaration
void Unregister(DicomServerRegistration registration)
Parameters
Type | Name | Description |
---|---|---|
DicomServerRegistration | registration |