Example #1
0
 /// <inheritdoc />
 public override Task BindAsync(IChannelHandlerContext ctx, EndPoint localAddress)
 {
     if (Logger.IsEnabled(MsLogLevel.Information))
     {
         Logger.LogInformation("Channel {0} bind to address {1}", ctx.Channel, localAddress);
     }
     return(ctx.BindAsync(localAddress));
 }
 public override Task BindAsync(IChannelHandlerContext ctx, EndPoint localAddress)
 {
     if (this.Logger.IsEnabled(this.InternalLevel))
     {
         this.Logger.Log(this.InternalLevel, this.Format(ctx, "BIND", localAddress));
     }
     return(ctx.BindAsync(localAddress));
 }
Example #3
0
 public virtual Task BindAsync(IChannelHandlerContext context, EndPoint localAddress) => context.BindAsync(localAddress);
 public Task BindAsync(EndPoint localAddress) => _ctx.BindAsync(localAddress);
Example #5
0
 public override Task BindAsync(IChannelHandlerContext ctx, EndPoint localAddress)
 {
     _log.Info("Channel {0} bind to address {1}", ctx.Channel, localAddress);
     return(ctx.BindAsync(localAddress));
 }
 public Task BindAsync(IChannelHandlerContext context, EndPoint localAddress)
 {
     return(context.BindAsync(localAddress));
 }
 public Task BindAsync(IChannelHandlerContext context, EndPoint localAddress)
 {
     return context.BindAsync(localAddress);
 }
Example #8
0
 public override Task BindAsync(IChannelHandlerContext ctx, EndPoint localAddress)
 {
     if (this.Logger.IsEnabled(this.InternalLevel))
     {
         this.Logger.Log(this.InternalLevel, this.Format(ctx, "BIND", localAddress));
     }
     return ctx.BindAsync(localAddress);
 }
Example #9
0
 public override Task BindAsync(IChannelHandlerContext context, EndPoint localAddress)
 {
     RegisterFiredEvent(SupportedEvent.BindAsync);
     return(context.BindAsync(localAddress));
 }
Example #10
0
 public override Task BindAsync(IChannelHandlerContext context, EndPoint remote)
 {
     context.Channel.DoBind(remote);
     return(context.BindAsync(remote));
 }
Example #11
0
 public override Task ConnectAsync(IChannelHandlerContext context, EndPoint remoteAddress, EndPoint localAddress)
 {
     _logger.Debug($"{context.Channel} CONNECT: {remoteAddress} ; {localAddress}");
     return(context.BindAsync(localAddress));
 }
Example #12
0
 public override Task BindAsync(IChannelHandlerContext context, EndPoint localAddress)
 {
     _logger.Debug($"{context.Channel} BIND: {localAddress}");
     return(context.BindAsync(localAddress));
 }
Example #13
0
        public override Task BindAsync(IChannelHandlerContext context, EndPoint localAddress)
        {
            Log.Debug($"{context.Name}: BindAsync {localAddress}");

            return(context.BindAsync(localAddress));
        }
Example #14
0
 public override Task BindAsync(IChannelHandlerContext context, EndPoint localAddress)
 {
     Log(Event.BIND, "localAddress=" + localAddress);
     return(context.BindAsync(localAddress));
 }
Example #15
0
 public override async Task BindAsync(IChannelHandlerContext ctx, EndPoint localAddress)
 {
     Logger().LogInformation($"Channel {ctx.Channel} bind to address {localAddress}");
     await ctx.BindAsync(localAddress);
 }