Table of Contents

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

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 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 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 void Unregister(DicomServerRegistration registration)

Parameters

registration DicomServerRegistration