Fellow Oak DICOM
Search Results for

    Show / Hide Table of Contents

    Interface IDicomServerFactory

    Namespace: FellowOakDicom.Network
    Assembly: fo-dicom.core.dll
    Syntax
    public interface IDicomServerFactory

    Methods

    Create<T>(Int32, ITlsAcceptor, Encoding, ILogger, Object, Action<DicomServerOptions>)

    Creates a DICOM server object.

    Declaration
    IDicomServer Create<T>(int port, ITlsAcceptor tlsAcceptor = null, Encoding fallbackEncoding = null, ILogger logger = null, object userState = null, Action<DicomServerOptions> configure = null)
        where T : DicomService, IDicomServiceProvider
    Parameters
    Type Name Description
    System.Int32 port

    Port to listen to.

    ITlsAcceptor tlsAcceptor

    Handler to accept authenticated connections.

    System.Text.Encoding fallbackEncoding

    Fallback encoding.

    Microsoft.Extensions.Logging.ILogger logger

    Logger, if null default logger will be applied.

    System.Object userState

    Optional parameters

    System.Action<DicomServerOptions> configure

    Configures the service options of the newly created DICOM server

    Returns
    Type Description
    IDicomServer

    An instance of DicomServer<T>, that starts listening for connections in the background.

    Type Parameters
    Name Description
    T

    DICOM service that the server should manage.

    Create<T>(String, Int32, ITlsAcceptor, Encoding, ILogger, Object, Action<DicomServerOptions>)

    Creates a DICOM server object.

    Declaration
    IDicomServer Create<T>(string ipAddress, int port, ITlsAcceptor tlsAcceptor = null, Encoding fallbackEncoding = null, ILogger logger = null, object userState = null, Action<DicomServerOptions> configure = null)
        where T : DicomService, IDicomServiceProvider
    Parameters
    Type Name Description
    System.String ipAddress

    IP address(es) to listen to. Value

    null
    applies default, IPv4Any.

    System.Int32 port

    Port to listen to.

    ITlsAcceptor tlsAcceptor

    Handler to accept authenticated connections.

    System.Text.Encoding fallbackEncoding

    Fallback encoding.

    Microsoft.Extensions.Logging.ILogger logger

    Logger, if null default logger will be applied.

    System.Object userState

    Optional parameters.

    System.Action<DicomServerOptions> configure

    Configures the service options of the newly created DICOM server

    Returns
    Type Description
    IDicomServer

    An instance of DicomServer<T>, that starts listening for connections in the background.

    Type Parameters
    Name Description
    T

    DICOM service that the server should manage.

    Create<T, TServer>(String, Int32, Object, ITlsAcceptor, Encoding, ILogger, Action<DicomServerOptions>)

    Creates a DICOM server object.

    Declaration
    IDicomServer Create<T, TServer>(string ipAddress, int port, object userState = null, ITlsAcceptor tlsAcceptor = null, Encoding fallbackEncoding = null, ILogger logger = null, Action<DicomServerOptions> configure = null)
        where T : DicomService, IDicomServiceProvider where TServer : IDicomServer<T>
    Parameters
    Type Name Description
    System.String ipAddress

    IP address(es) to listen to. Value

    null
    applies default, IPv4Any.

    System.Int32 port

    Port to listen to.

    System.Object userState

    Optional parameters

    ITlsAcceptor tlsAcceptor

    Handler to accept authenticated connections.

    System.Text.Encoding fallbackEncoding

    Fallback encoding.

    Microsoft.Extensions.Logging.ILogger logger

    Logger, if null default logger will be applied.

    System.Action<DicomServerOptions> configure

    Configures the service options of the newly created DICOM server

    Returns
    Type Description
    IDicomServer

    An instance of TServer, that starts listening for connections in the background.

    Type Parameters
    Name Description
    T

    DICOM service that the server should manage.

    TServer

    Concrete DICOM server type to be returned.

    Extension Methods

    LinqExtensions.IsOneOf<T>(T, T[])
    In This Article
    Back to top Copyright (c) 2012-2025 fo-dicom contributors