Пример #1
0
        void WasConnected(object state, bool timedOut)
        {
            Debug.Print("ListenerAdapter[" + ProtocolName + "]::WasConnected() timedOut: " + timedOut);
            if (timedOut)
            {
                // WAS didn't connect within the timeout give up waiting and stop
                DiagnosticUtility.EventLog.LogEvent(TraceEventType.Warning,
                                                    (ushort)EventLogCategory.ListenerAdapter,
                                                    (uint)EventLogEventId.WasConnectionTimedout);

                if (TD.WasConnectionTimedoutIsEnabled())
                {
                    TD.WasConnectionTimedout(this.EventTraceActivity);
                }

                activationService.StopService();
            }
            wasConnected.Close();
            wasConnected = null;
        }