Udostępnij za pośrednictwem


ApplicationStoppingEventArgs.Run(Func<Task>) Method

Definition

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

public:
 void Run(Func<System::Threading::Tasks::Task ^> ^ asyncMethod);
public void Run (Func<System.Threading.Tasks.Task> asyncMethod);
member this.Run : Func<System.Threading.Tasks.Task> -> unit
Public Sub Run (asyncMethod As Func(Of Task))

Parameters

asyncMethod
Func<Task>

Applies to