Show / Hide Table of Contents

    Class OutboundChannelHandlerBase<T>

    OutboundChannel Handler is similar to Dot Netty's simple inbound channel handler, except it removes some redundant double cast operations.

    Inheritance
    System.Object
    OutboundChannelHandlerBase<T>
    CorrelatableHandler<T>
    FlushPipelineHandler<T>
    ProtocolMessageSignHandler
    Namespace: Catalyst.Core.Lib.IO.Handlers
    Assembly: Catalyst.Core.Lib.dll
    Syntax
    public abstract class OutboundChannelHandlerBase<T> : ChannelHandlerAdapter
    Type Parameters
    Name Description
    T

    Methods

    | Improve this Doc View Source

    WriteAsync(IChannelHandlerContext, Object)

    Does check to see if it can process the msg, if object is T thn it fires the inheritor WriteAsync0

    Declaration
    public override Task WriteAsync(IChannelHandlerContext ctx, object msg)
    Parameters
    Type Name Description
    IChannelHandlerContext ctx
    System.Object msg
    Returns
    Type Description
    System.Threading.Tasks.Task
    | Improve this Doc View Source

    WriteAsync0(IChannelHandlerContext, T)

    Only fires if the msg if is the same as the classes generic T, should be implemented by inherited concrete classes.

    Declaration
    protected abstract Task WriteAsync0(IChannelHandlerContext ctx, T msg)
    Parameters
    Type Name Description
    IChannelHandlerContext ctx
    T msg
    Returns
    Type Description
    System.Threading.Tasks.Task
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network