private void OnStopping(ApplicationStoppingEventArgs eventArgs)
 {
     EventHandler<ApplicationStoppingEventArgs> handler = this.Stopping;
     if (handler != null)
     {
         handler(this, eventArgs);
     }
 }
예제 #2
0
        public void OnStopping(ApplicationStoppingEventArgs e)
        {
            EventHandler <ApplicationStoppingEventArgs> handler = this.Stopping;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #3
0
        private void OnStopping(ApplicationStoppingEventArgs eventArgs)
        {
            EventHandler <ApplicationStoppingEventArgs> handler = this.Stopping;

            if (handler != null)
            {
                handler(this, eventArgs);
            }
        }
예제 #4
0
 private void HandleApplicationStoppingEvent(object sender, ApplicationStoppingEventArgs e)
 {
     this.SetMaxTransmissionCapacity(0);
 }
 private void OnStopping(ApplicationStoppingEventArgs eventArgs)
 {
     this.Stopping?.Invoke(this, eventArgs);
 }