Class ClientConnectionFactory<TProtocol>
Class that implements a ISocketConnectionFactory which creates new connections that target a given protocol.
Inheritance
System.Object
ClientConnectionFactory<TProtocol>
Implements
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 SourceClientConnectionFactory(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 SourceCreate(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. |