Esempio n. 1
0
 public virtual async Task RecivedAsync(IChannel channel, object message)
 {
     if (IsClosed)
     {
         return;
     }
     await ChannelHander.RecivedAsync(channel, message);
 }
Esempio n. 2
0
 public virtual async Task SentAsync(IChannel channel, object message)
 {
     if (IsClosed)
     {
         throw new Exception("channel closed");
     }
     await ChannelHander.SentAsync(channel, message);
 }
Esempio n. 3
0
 public virtual async Task ConnectAsync(IChannel channel)
 {
     if (IsClosed)
     {
         return;
     }
     await ChannelHander.ConnectAsync(channel);
 }
Esempio n. 4
0
 public virtual Task CaughtAsync(IChannel channel, Exception exception)
 {
     return(ChannelHander.CaughtAsync(channel, exception));
 }
Esempio n. 5
0
 public virtual Task DisconnectAsync(IChannel channel)
 {
     return(ChannelHander.DisconnectAsync(channel));
 }