コード例 #1
0
ファイル: DuplexFrontEnd.cs プロジェクト: umialpha/Telepathy
        /// <summary>
        /// Indicating the client that frontend disconnected
        /// </summary>
        /// <param name="channel">indicating the channel</param>
        /// <param name="client">indicating the client</param>
        private void FrontendDisconnect(IDuplexSessionChannel channel, BrokerClient client)
        {
            if (client == null)
            {
                BrokerTracing.TraceEvent(TraceEventType.Information, 0, "[DuplexFrontEnd] FrontendDisconnect client == null");
                client = this.GetClientByChannel(channel, null, String.Empty);
            }

            if (client != null)
            {
                BrokerTracing.TraceEvent(TraceEventType.Information, 0, "[DuplexFrontEnd] FrontendDisconnect client != null");
                client.FrontendDisconnected(channel);
            }
        }