ListenerPrimary Class

A primary listener waits for incoming connections on a specified socket. Incoming connections may be passed to a secondary listener to handle.

Namespace
Microsoft.AspNetCore.Server.Kestrel.Internal.Http
Assemblies
  • Microsoft.AspNetCore.Server.Kestrel

Syntax

public abstract class ListenerPrimary : Listener, IAsyncDisposable
class Microsoft.AspNetCore.Server.Kestrel.Internal.Http.ListenerPrimary

Constructors

ListenerPrimary(Microsoft.AspNetCore.Server.Kestrel.Internal.ServiceContext)
protected ListenerPrimary(ServiceContext serviceContext)

Methods

DispatchConnection(Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvStreamHandle)
protected override void DispatchConnection(UvStreamHandle socket)
DisposeAsync()
Return type:System.Threading.Tasks.Task
public override Task DisposeAsync()
StartAsync(System.String, Microsoft.AspNetCore.Server.Kestrel.ServerAddress, Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelThread)
Return type:System.Threading.Tasks.Task
public Task StartAsync(string pipeName, ServerAddress address, KestrelThread thread)