示例#1
0
 public void FireWrite(object msg)
 {
     if (_outboundList.Count == 0)
     {
         return;
     }
     AbstractSessionContext.InvokeWrite(_outboundList.First.Value, msg);
 }
示例#2
0
 public void FireDisconnect()
 {
     if (_inboundList.Count == 0)
     {
         return;
     }
     AbstractSessionContext.InvokeDisconnect(_inboundList.First.Value);
 }
示例#3
0
 public void FireRead(object msg)
 {
     if (_inboundList.Count == 0)
     {
         return;
     }
     AbstractSessionContext.InvokeRead(_inboundList.First.Value, msg);
 }
示例#4
0
 public static void InvokeWrite(AbstractSessionContext cxt, object msg)
 {
     ((ISessionOutboundHandler)cxt.Handler).SessionWrite(cxt.Next, msg);
 }
示例#5
0
 public static void InvokeRead(AbstractSessionContext cxt, object msg)
 {
     ((ISessionInboundHandler)cxt.Handler).SessionRead(cxt.Next, msg);
 }
示例#6
0
 public static void InvokeDisconnect(AbstractSessionContext cxt)
 {
     ((ISessionInboundHandler)cxt.Handler).SessionDisconnect(cxt.Next);
 }