Fellow Oak DICOM
Search Results for

    Show / Hide Table of Contents

    Class DicomServerRegistry

    Register where we keep the running DICOM servers

    Inheritance
    System.Object
    DicomServerRegistry
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FellowOakDicom.Network
    Assembly: fo-dicom.core.dll
    Syntax
    public static class DicomServerRegistry

    Methods

    Get(Int32, String)

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

    Declaration
    public static 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
    public static 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
    public static 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
    public static void Unregister(DicomServerRegistration registration)
    Parameters
    Type Name Description
    DicomServerRegistration registration
    In This Article
    Back to top Copyright (c) 2012-2025 fo-dicom contributors