Show / Hide Table of Contents

    Class GatewayListener<TConnectionFactory>

    Class that extends the standard BaseListener for the gateway protocol.

    Inheritance
    System.Object
    BaseListener
    GatewayListener<TConnectionFactory>
    Implements
    IListener
    Microsoft.Extensions.Hosting.IHostedService
    Inherited Members
    BaseListener.NewConnection
    BaseListener.Logger
    BaseListener.StartAsync(CancellationToken)
    BaseListener.StopAsync(CancellationToken)
    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.Communications.Listeners
    Assembly: Fibula.Communications.dll
    Syntax
    public class GatewayListener<TConnectionFactory> : BaseListener, IListener, IHostedService where TConnectionFactory : class, ISocketConnectionFactory
    Type Parameters
    Name Description
    TConnectionFactory

    The type of connection factory to use in the listener.

    Constructors

    | Improve this Doc View Source

    GatewayListener(ILogger, IOptions<GatewayListenerOptions>, TConnectionFactory, IDoSDefender)

    Initializes a new instance of the GatewayListener<TConnectionFactory> class.

    Declaration
    public GatewayListener(ILogger logger, IOptions<GatewayListenerOptions> options, TConnectionFactory connectionFactory, IDoSDefender dosDefender)
    Parameters
    Type Name Description
    Serilog.ILogger logger

    A reference to the logger in use.

    Microsoft.Extensions.Options.IOptions<GatewayListenerOptions> options

    The options for this listener.

    TConnectionFactory connectionFactory

    A reference to the connection factory in play here.

    IDoSDefender dosDefender

    A reference to the DoS defender service implementation.

    | Improve this Doc View Source

    GatewayListener(ILogger, IOptions<GatewayListenerOptions>, TConnectionFactory, IDoSDefender, ITcpListener)

    Initializes a new instance of the GatewayListener<TConnectionFactory> class.

    Declaration
    public GatewayListener(ILogger logger, IOptions<GatewayListenerOptions> options, TConnectionFactory connectionFactory, IDoSDefender dosDefender, ITcpListener tcpListener)
    Parameters
    Type Name Description
    Serilog.ILogger logger

    A reference to the logger in use.

    Microsoft.Extensions.Options.IOptions<GatewayListenerOptions> options

    The options for this listener.

    TConnectionFactory connectionFactory

    A reference to the connection factory in play here.

    IDoSDefender dosDefender

    A reference to the DoS defender service implementation.

    ITcpListener tcpListener

    Optional. An intance to use as the TCP listener, useful for unit testing.

    Implements

    IListener
    Microsoft.Extensions.Hosting.IHostedService

    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.