Class DefaultRequestHandler
Special kind of handler that is used as a fall back when no other handler is picked.
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.Mechanics.Handlers
Assembly: Fibula.Mechanics.dll
Syntax
public class DefaultRequestHandler : BaseRequestHandler, IHandler
Constructors
| Improve this Doc View SourceDefaultRequestHandler(ILogger)
Initializes a new instance of the DefaultRequestHandler class.
Declaration
public DefaultRequestHandler(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Serilog.ILogger | logger | A reference to the logger in use. |
Methods
| Improve this Doc View SourceHandleRequest(IIncomingPacket, IClient)
Handles the contents of a network message.
Declaration
public override IEnumerable<IOutboundPacket> HandleRequest(IIncomingPacket incomingPacket, IClient client)
Parameters
Type | Name | Description |
---|---|---|
IIncomingPacket | incomingPacket | The packet to handle. |
IClient | client | A reference to the client from where this request originated from, for context. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IOutboundPacket> | A collection of IOutboundPackets that compose that synchronous response, if any. |