コード例 #1
0
        private static void InternalUnRegisterChannel(object channelObject)
        {
            Thread.Sleep(2000);

            try
            {
                IContextChannel channel = channelObject as IContextChannel;
                channel.DoClose();
            }
            catch (Exception ex)
            {
                LogHelper.WriteError(ex.Message, ex);
            }
        }
コード例 #2
0
        private static void DealRptChannelFaultEvent(object sender, EventArgs e)
        {
            LogHelper.WriteInfo(
                "*******************ServiceChannelManger.DealRptChannel回送通道发生异常*******************");

            IContextChannel channel = sender as IContextChannel;

            if (channel == null)
            {
                return;
            }

            channel.DoClose();
        }