private void OnStopping(ApplicationStoppingEventArgs eventArgs) { EventHandler<ApplicationStoppingEventArgs> handler = this.Stopping; if (handler != null) { handler(this, eventArgs); } }
public void OnStopping(ApplicationStoppingEventArgs e) { EventHandler <ApplicationStoppingEventArgs> handler = this.Stopping; if (handler != null) { handler(this, e); } }
private void OnStopping(ApplicationStoppingEventArgs eventArgs) { EventHandler <ApplicationStoppingEventArgs> handler = this.Stopping; if (handler != null) { handler(this, eventArgs); } }
private void HandleApplicationStoppingEvent(object sender, ApplicationStoppingEventArgs e) { this.SetMaxTransmissionCapacity(0); }
private void OnStopping(ApplicationStoppingEventArgs eventArgs) { this.Stopping?.Invoke(this, eventArgs); }