Coree.NETASP
  • API
Show / Hide Table of Contents
  • Coree.NETASP.Extensions
    • HttpResponseExtensions
  • Coree.NETASP.Extensions.KestrelOptions
    • AuthenticationBuilderExtensions
    • ConfigureWebHostBuilderExtensions
    • ConfigureWebHostBuilderExtensions.ListenType
    • xExtensions
  • Coree.NETASP.Extensions.WebApplicationBuilderExtensions
    • WebAppBuilderExtensions
    • WebApplicationBuilderExtension
  • Coree.NETASP.Middleware
    • FailurePointsMiddleware
    • FailurePointsMiddlewareExtensions
    • FailurePointsMiddlewareOptions
    • RequestThrottlingMiddleware
  • Coree.NETASP.Middleware.AcceptLanguageFiltering
    • AcceptLanguageFilteringExtensions
    • AcceptLanguageFilteringMiddleware
    • AcceptLanguageFilteringOptions
  • Coree.NETASP.Middleware.DnsHostNameFiltering
    • DnsHostNameFilteringMiddleware
    • DnsHostNameFilteringMiddlewareExtensions
    • DnsHostNameFilteringOptions
  • Coree.NETASP.Middleware.HostNameFiltering
    • HostNameFilterOptions
    • HostNameFilteringExtensions
    • HostNameFilteringMiddleware
  • Coree.NETASP.Middleware.NewFolder
    • PreMiddlewareHostedService
    • WaitForPreMiddlewareHostedServiceMiddleware
    • fooExtensions
  • Coree.NETASP.Middleware.PathDeep
    • PathDeepFilteringExtensions
    • PathDeepFilteringMiddleware
    • PathDeepFilteringOptions
  • Coree.NETASP.Middleware.ProtocolFiltering
    • ProtocolFilteringMiddleware
    • ProtocolFilteringMiddlewareExtensions
    • ProtocolFilteringOptions
  • Coree.NETASP.Middleware.RequestLogging
    • RequestLoggingMiddleware
  • Coree.NETASP.Middleware.RequestUrlFiltering
    • RequestUrlFilteringExtensions
    • RequestUrlFilteringMiddleware
    • RequestUrlFilteringOptions
  • Coree.NETASP.Middleware.ResponseRecording
    • ResponseRecordingMiddleware
  • Coree.NETASP.Middleware.SegmentBlacklistFiltering
    • SegmentBlacklistFilterOptions
    • SegmentBlacklistFilteringExtensions
    • SegmentBlacklistFilteringMiddleware
  • Coree.NETASP.Middleware.UnwantedHeaderKeysFiltering
    • UnwantedHeaderKeysMiddleware
    • UnwantedHeaderKeysMiddlewareExtensions
    • UnwantedHeaderKeysOptions
  • Coree.NETASP.Middleware.UserAgentFiltering
    • UserAgentFilterOptions
    • UserAgentFilteringExtensions
    • UserAgentFilteringMiddleware
  • Coree.NETASP.Services.CertificateManager
    • CertificateManager
    • CertificateManagerService
    • CommonDistinguishedNameBuilder
    • DistinguishedName
    • ICertificateManagerService
  • Coree.NETASP.Services.CookieAuth
    • AuthExtensions
    • CookieAuthHandler
    • ICookieAuthHandler
  • Coree.NETASP.Services.Instancer
    • IServerConfigurationAnalyzer
    • ServerConfigurationAnalyzer
    • ServerConfigurationAnalyzer.ServerListenDetail
  • Coree.NETASP.Services.Points
    • Entry
    • IPointService
    • PointEntry
    • PointService
    • PointServiceOptions
  • Coree.NETASP.UnderConstruction
    • CustomWebApplication
    • CustomWebApplication2
    • DummyFileProvider
    • EmptyWebHostBuilder
    • EmptyWebHostBuilder2
    • EmptyWebHostBuilder3
    • EmptyWebHostBuilderx
    • ExampleClass
    • FileServerMiddleware
    • FileServerMiddlewareExtensions
    • MyWebHostBuilder
    • ObjectDumper
    • ObjectDumper2
    • ObjectDumper3
    • OptionsDumper
    • OptionsKestrelServerOptionsExtensions
    • PhpCgiExecutor
    • Product
    • PropertyAccessTracker<T>
    • ServicesDumper
    • TrackableItem<T>
    • TrackableList<T>
    • TrackableState

Class PreMiddlewareHostedService

Inheritance
object
PreMiddlewareHostedService
Implements
IHostedService
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Coree.NETASP.Middleware.NewFolder
Assembly: Coree.NETASP.dll
Syntax
public class PreMiddlewareHostedService : IHostedService

Properties

| Edit this page View Source

StartupCompleted

Gets a task that completes when the startup process is done.

Declaration
public Task StartupCompleted { get; }
Property Value
Type Description
Task

Methods

| Edit this page View Source

StartAsync(CancellationToken)

Executes the background service task.

Declaration
public Task StartAsync(CancellationToken stoppingToken)
Parameters
Type Name Description
CancellationToken stoppingToken

Token that indicates when to stop the task.

Returns
Type Description
Task

A Task representing the asynchronous operation.

| Edit this page View Source

StopAsync(CancellationToken)

Triggered when the application host is performing a graceful shutdown.

Declaration
public Task StopAsync(CancellationToken stoppingToken)
Parameters
Type Name Description
CancellationToken stoppingToken
Returns
Type Description
Task

A Task that represents the asynchronous Stop operation.

Implements

IHostedService
  • Edit this page
  • View Source
In this article
Back to top