Show / Hide Table of Contents

    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 Source

    HandleRequest(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.

    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.