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