public static void InsertPool(this NettyNetwork network, ChannelContext context) { ConnectionContextPool.Insert(network, context); }
public static TResult Call <TResult>(this ChannelContext context, int messageId, object input) { if (!context.Channel.Active) { return(default);
public static TResult Call <TResult>(this ChannelContext context, Enum messageId, object input) { var integerId = Convert.ToInt32(messageId); return(context.Call <TResult>(integerId, input)); }
public static Task SendAsync(this ChannelContext context, int messageId, object message) { var rpcId = 0; return(context.SendAsync(messageId, rpcId, message)); }
public static void Send(this ChannelContext context, int messageId, object message) { var rpcId = 0; context.SendAsync(messageId, rpcId, message); }
internal void EnqueueChannelContext(ChannelContext context) { context.Flush(); ChannelContextQueue.Enqueue(context); }