Esempio n. 1
0
        /// <summary>
        /// 与服务端失联后,触发
        /// </summary>
        /// <param name="context"></param>
        public void OnChannelInactiveHandler(IChannelHandlerContext context)
        {
            DisConnectedArgs args = new DisConnectedArgs();

            args.EndPoint  = context.Channel.RemoteAddress;
            args.ContextId = context.Channel.Id.AsLongText();
            DisConnected?.Invoke(this, args);
            RetryConnect(this, args);
        }
Esempio n. 2
0
 private async void TradeClientBootstrap_RetryConnectAsync(object sender, DisConnectedArgs e)
 {
     await InitBootstrapAsync().ContinueWith(x =>
     {
     });
 }
Esempio n. 3
0
 private void TradeClientBootstrap_DisConnected(object sender, DisConnectedArgs e)
 {
 }