Beispiel #1
0
        private void ClientEvent(IRTCClientEvent clientEvent)
        {
            RTC_CLIENT_EVENT_TYPE olayTuru = clientEvent.EventType;

            if (olayTuru == RTC_CLIENT_EVENT_TYPE.RTCCET_ASYNC_CLEANUP_DONE) // Form kapatýldýðýnda veya PrepareForShutdown metodu tetikler...
            {
                profil = null;

                if (istemci != null)
                {
                    // Artýk olaylarý dinleme... -=
                    istemci.IRTCEventNotification_Event_Event -= new IRTCEventNotification_EventEventHandler(istemci_IRTCEventNotification_Event_Event);
                    istemci.Shutdown();
                    istemci = null;
                }
                this.anaPencere.KapatAnaPencere();
            }
        }
Beispiel #2
0
        void OnRTCClientEvent(IRTCClientEvent clientEvent)
        {
            Trace.WriteLine("Enter OnRTCClientEvent  " + clientEvent.EventType);

            RTC_CLIENT_EVENT_TYPE eventType = clientEvent.EventType;

            if (eventType == RTC_CLIENT_EVENT_TYPE.RTCCET_ASYNC_CLEANUP_DONE)
            {
                // The RTC client has finished preparing for shutdown.
                this.profile = null;

                if (this.client != null)
                {
                    // Unadvise for events from the RTC client
                    this.client.IRTCEventNotification_Event_Event -= new IRTCEventNotification_EventEventHandler(OnRTCEvent);
                    this.client.Shutdown();
                    this.client = null;
                }
                this.presenceUI.CloseUI();
            }
        }
        void OnRTCClientEvent(IRTCClientEvent clientEvent)
        {
            Trace.WriteLine("Enter OnRTCClientEvent  " + clientEvent.EventType);

            RTC_CLIENT_EVENT_TYPE eventType = clientEvent.EventType;

            if ( eventType == RTC_CLIENT_EVENT_TYPE.RTCCET_ASYNC_CLEANUP_DONE )
            {
                // The RTC client has finished preparing for shutdown.
                this.profile = null;

                if (this.client != null)
                {
                    // Unadvise for events from the RTC client
                    this.client.IRTCEventNotification_Event_Event -= new IRTCEventNotification_EventEventHandler(OnRTCEvent);
                    this.client.Shutdown();
                    this.client = null;
                }
                this.presenceUI.CloseUI();
            }
        }
        private void ClientEvent(IRTCClientEvent clientEvent)
        {
            RTC_CLIENT_EVENT_TYPE olayTuru = clientEvent.EventType;

            if (olayTuru == RTC_CLIENT_EVENT_TYPE.RTCCET_ASYNC_CLEANUP_DONE) // Form kapatýldýðýnda veya PrepareForShutdown metodu tetikler...
            {
                profil = null;

                if (istemci != null)
                {
                    // Artýk olaylarý dinleme... -=
                    istemci.IRTCEventNotification_Event_Event -= new IRTCEventNotification_EventEventHandler(istemci_IRTCEventNotification_Event_Event);
                    istemci.Shutdown();
                    istemci = null;
                }
                this.anaPencere.KapatAnaPencere();
            }
        }