IServer.StartAsync<TContext> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Start the server with an application.
public:
generic <typename TContext>
System::Threading::Tasks::Task ^ StartAsync(Microsoft::AspNetCore::Hosting::Server::IHttpApplication<TContext> ^ application, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task StartAsync<TContext> (Microsoft.AspNetCore.Hosting.Server.IHttpApplication<TContext> application, System.Threading.CancellationToken cancellationToken);
abstract member StartAsync : Microsoft.AspNetCore.Hosting.Server.IHttpApplication<'Context> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartAsync(Of TContext) (application As IHttpApplication(Of TContext), cancellationToken As CancellationToken) As Task
Type Parameters
- TContext
The context associated with the application.
Parameters
- application
- IHttpApplication<TContext>
An instance of IHttpApplication<TContext>.
- cancellationToken
- CancellationToken
Indicates if the server startup should be aborted.
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for