Esempio n. 1
0
        protected virtual void OnRaisePlaybackTimeoutChangedEvent(PlaybackTimeoutChangedEventArgs ptcea)
        {
            // Make a temporary copy of the event to avoid possibility of
            // a race condition if the last subscriber unsubscribes
            // immediately after the null check and before the event is raised.
            PlaybackTimeoutChangedEventHandler handler = PlaybackTimeoutChangedEvent;

            // Raise the event
            if (handler != null)
            {
                handler(this, ptcea);
            }
        }
Esempio n. 2
0
 protected virtual void OnRaisePlaybackTimeoutChangedEvent(PlaybackTimeoutChangedEventArgs ptcea)
 {
     // Make a temporary copy of the event to avoid possibility of
     // a race condition if the last subscriber unsubscribes
     // immediately after the null check and before the event is raised.
     PlaybackTimeoutChangedEventHandler handler = PlaybackTimeoutChangedEvent;
     // Raise the event
     if (handler != null)
         handler(this, ptcea);
 }