HostingAbstractionsHostExtensions.Run(IHost) 方法

定义

运行应用程序并阻止调用线程,直至主机关闭。Runs an application and block the calling thread until host shutdown.

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)

参数

host
IHost

要运行的 IHostThe IHost to run.

适用于