Beispiel #1
0
 public static void InsertPool(this NettyNetwork network, ChannelContext context)
 {
     ConnectionContextPool.Insert(network, context);
 }
Beispiel #2
0
 public static TResult Call <TResult>(this ChannelContext context, int messageId, object input)
 {
     if (!context.Channel.Active)
     {
         return(default);
Beispiel #3
0
        public static TResult Call <TResult>(this ChannelContext context, Enum messageId, object input)
        {
            var integerId = Convert.ToInt32(messageId);

            return(context.Call <TResult>(integerId, input));
        }
Beispiel #4
0
        public static Task SendAsync(this ChannelContext context, int messageId, object message)
        {
            var rpcId = 0;

            return(context.SendAsync(messageId, rpcId, message));
        }
Beispiel #5
0
        public static void Send(this ChannelContext context, int messageId, object message)
        {
            var rpcId = 0;

            context.SendAsync(messageId, rpcId, message);
        }
Beispiel #6
0
 internal void EnqueueChannelContext(ChannelContext context)
 {
     context.Flush();
     ChannelContextQueue.Enqueue(context);
 }