HostingAbstractionsHostExtensions.Run(IHost) Methode

Definition

Führt eine Anwendung aus und blockiert den aufrufenden Thread, bis das Herunterfahren des Hosts ausgelöst wird und alle IHostedService Instanzen beendet werden.

public:
[System::Runtime::CompilerServices::Extension]
 static void Run(Microsoft::Extensions::Hosting::IHost ^ host);
public static void Run(this Microsoft.Extensions.Hosting.IHost host);
static member Run : Microsoft.Extensions.Hosting.IHost -> unit
<Extension()>
Public Sub Run (host As IHost)

Parameter

host
IHost

Der IHost auszuführende Befehl.

Gilt für: