public virtual async Task RecivedAsync(IChannel channel, object message) { if (IsClosed) { return; } await ChannelHander.RecivedAsync(channel, message); }
public virtual async Task SentAsync(IChannel channel, object message) { if (IsClosed) { throw new Exception("channel closed"); } await ChannelHander.SentAsync(channel, message); }
public virtual async Task ConnectAsync(IChannel channel) { if (IsClosed) { return; } await ChannelHander.ConnectAsync(channel); }
public virtual Task CaughtAsync(IChannel channel, Exception exception) { return(ChannelHander.CaughtAsync(channel, exception)); }
public virtual Task DisconnectAsync(IChannel channel) { return(ChannelHander.DisconnectAsync(channel)); }