protected override void OnReceived(ChannelMessage message) { var ctx = new ChannelPipelineContext(); ctx.SetChannel(this); pipeline.OnReceived(ctx, message); }
protected override void OnConnected() { var ctx = new ChannelPipelineContext(); ctx.SetChannel(this); pipeline.OnConnected(ctx); }
private void processConnectioned(object sender, SocketAsyncEventArgs e) { var ctx = new ChannelPipelineContext(); ctx.SetChannel(this); pipeline.OnConnected(ctx); Receiving(); }
public void OnSend(ChannelPipelineContext ctx) { handlerInvoke(handle => { if (isImplMethod(handle, "OnSend")) { return(handle.OnSend(ctx.Channel)); } return(true); }); }
public void OnReceived(ChannelPipelineContext ctx, ChannelMessage message) { Ensure.IsNotNull(message); handlerInvoke(handle => { if (isImplMethod(handle, "OnReceived")) { return(handle.OnReceived(ctx.Channel, message)); } return(true); }); }
public void OnReconnected(ChannelPipelineContext ctx) { handlerInvoke(null); }
public void OnBreaked(ChannelPipelineContext ctx) { handlerInvoke(null); }