Table of Contents

Interface IDicomServerRegistry

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

Register where we keep the running DICOM servers

public interface IDicomServerRegistry
Extension Methods

Methods

Get(int, string)

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

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

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

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.

void Unregister(DicomServerRegistration registration)

Parameters

registration DicomServerRegistration