Interface IHandler
Interface for a request handler.
Namespace: Fibula.Mechanics.Contracts.Abstractions
Assembly: Fibula.Mechanics.Contracts.dll
Syntax
public interface IHandler
Methods
| Improve this Doc View SourceHandleRequest(IIncomingPacket, IClient)
Handles the request contained in a packet.
Declaration
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. |