Table of Contents

Class DicomServerRegistry

Namespace
FellowOakDicom.Network
Assembly
fo-dicom.core.dll

Register where we keep the running DICOM servers

public static class DicomServerRegistry
Inheritance
DicomServerRegistry
Inherited Members

Methods

Get(int, string)

Gets a running DICOM server listening on the provided port, or NULL if no such DICOM server exists.

public static DicomServerRegistration Get(int port, string ipAddress = "0.0.0.0")

Parameters

port int

The port

ipAddress string

The IP address

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 static bool IsAvailable(int port, string ipAddress = "0.0.0.0")

Parameters

port int

The port

ipAddress string

The IP address

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 static DicomServerRegistration Register(IDicomServer dicomServer, Task task)

Parameters

dicomServer IDicomServer

The DICOM server that is now running

task Task

The task that represents the running of the DICOM server

Returns

DicomServerRegistration

Unregister(DicomServerRegistration)

Unregisters a DICOM server. This needs to happen when the DICOM server is stopped.

public static void Unregister(DicomServerRegistration registration)

Parameters

registration DicomServerRegistration