Show / Hide Table of Contents

    Class ClientConnectionFactory<TProtocol>

    Class that implements a ISocketConnectionFactory which creates new connections that target a given protocol.

    Inheritance
    System.Object
    ClientConnectionFactory<TProtocol>
    Implements
    ISocketConnectionFactory
    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: Fibula.Protocol.V772
    Assembly: Fibula.Protocol.V772.dll
    Syntax
    public class ClientConnectionFactory<TProtocol> : ISocketConnectionFactory where TProtocol : IProtocol
    Type Parameters
    Name Description
    TProtocol

    The type of protocol to use.

    Constructors

    | Improve this Doc View Source

    ClientConnectionFactory(ILogger, TProtocol)

    Initializes a new instance of the ClientConnectionFactory<TProtocol> class.

    Declaration
    public ClientConnectionFactory(ILogger logger, TProtocol protocol)
    Parameters
    Type Name Description
    Serilog.ILogger logger

    A reference to the logger in use.

    TProtocol protocol

    A reference to the protocol to target.

    Methods

    | Improve this Doc View Source

    Create(Socket)

    Creates a new ISocketConnection for the given socket.

    Declaration
    public ISocketConnection Create(Socket socket)
    Parameters
    Type Name Description
    System.Net.Sockets.Socket socket

    The socket of the connection.

    Returns
    Type Description
    ISocketConnection

    A new instance of a ISocketConnection.

    Implements

    ISocketConnectionFactory

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.