Udostępnij za pośrednictwem


ApplicationStoppingEventArgs Class

Definition

Encapsulates arguments of the Stopping event.

public ref class ApplicationStoppingEventArgs : EventArgs
public class ApplicationStoppingEventArgs : EventArgs
type ApplicationStoppingEventArgs = class
    inherit EventArgs
Public Class ApplicationStoppingEventArgs
Inherits EventArgs
Inheritance
ApplicationStoppingEventArgs

Constructors

ApplicationStoppingEventArgs(Func<Func<Task>,Task>)

Initializes a new instance of the ApplicationStoppingEventArgs class with the specified runner of asynchronous methods.

Methods

Run(Func<Task>)

Runs the specified asynchronous method while preventing the application from exiting.

Applies to