DefaultConnectionContext Klasse

Definition

Die Standardimplementierung für .ConnectionContext

public ref class DefaultConnectionContext : Microsoft::AspNetCore::Connections::ConnectionContext, IDisposable, Microsoft::AspNetCore::Connections::Features::IConnectionIdFeature, Microsoft::AspNetCore::Connections::Features::IConnectionItemsFeature, Microsoft::AspNetCore::Connections::Features::IConnectionLifetimeFeature, Microsoft::AspNetCore::Connections::Features::IConnectionTransportFeature, Microsoft::AspNetCore::Connections::Features::IConnectionUserFeature
public ref class DefaultConnectionContext : Microsoft::AspNetCore::Connections::ConnectionContext, Microsoft::AspNetCore::Connections::Features::IConnectionEndPointFeature, Microsoft::AspNetCore::Connections::Features::IConnectionIdFeature, Microsoft::AspNetCore::Connections::Features::IConnectionItemsFeature, Microsoft::AspNetCore::Connections::Features::IConnectionLifetimeFeature, Microsoft::AspNetCore::Connections::Features::IConnectionTransportFeature, Microsoft::AspNetCore::Connections::Features::IConnectionUserFeature
public class DefaultConnectionContext : Microsoft.AspNetCore.Connections.ConnectionContext, IDisposable, Microsoft.AspNetCore.Connections.Features.IConnectionIdFeature, Microsoft.AspNetCore.Connections.Features.IConnectionItemsFeature, Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeFeature, Microsoft.AspNetCore.Connections.Features.IConnectionTransportFeature, Microsoft.AspNetCore.Connections.Features.IConnectionUserFeature
public class DefaultConnectionContext : Microsoft.AspNetCore.Connections.ConnectionContext, Microsoft.AspNetCore.Connections.Features.IConnectionEndPointFeature, Microsoft.AspNetCore.Connections.Features.IConnectionIdFeature, Microsoft.AspNetCore.Connections.Features.IConnectionItemsFeature, Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeFeature, Microsoft.AspNetCore.Connections.Features.IConnectionTransportFeature, Microsoft.AspNetCore.Connections.Features.IConnectionUserFeature
type DefaultConnectionContext = class
    inherit ConnectionContext
    interface IDisposable
    interface IConnectionIdFeature
    interface IConnectionItemsFeature
    interface IConnectionTransportFeature
    interface IConnectionUserFeature
    interface IConnectionLifetimeFeature
type DefaultConnectionContext = class
    inherit ConnectionContext
    interface IConnectionIdFeature
    interface IConnectionItemsFeature
    interface IConnectionTransportFeature
    interface IConnectionUserFeature
    interface IConnectionLifetimeFeature
    interface IConnectionEndPointFeature
Public Class DefaultConnectionContext
Inherits ConnectionContext
Implements IConnectionIdFeature, IConnectionItemsFeature, IConnectionLifetimeFeature, IConnectionTransportFeature, IConnectionUserFeature, IDisposable
Public Class DefaultConnectionContext
Inherits ConnectionContext
Implements IConnectionEndPointFeature, IConnectionIdFeature, IConnectionItemsFeature, IConnectionLifetimeFeature, IConnectionTransportFeature, IConnectionUserFeature
Vererbung
DefaultConnectionContext
Vererbung
Implementiert

Konstruktoren

DefaultConnectionContext()

Erstellt die DefaultConnectionContext ohne Pipes, um Vorabzuordnungen zu vermeiden. Es wird erwartet, dass der Aufrufer die Transport Rohre und Application manuell einrichtet.

DefaultConnectionContext(String)

Erstellt die DefaultConnectionContext ohne Pipes, um Vorabzuordnungen zu vermeiden. Es wird erwartet, dass der Aufrufer die Transport Rohre und Application manuell einrichtet.

DefaultConnectionContext(String, IDuplexPipe, IDuplexPipe)

Erstellt defaultConnectionContext mit den angegebenen transport Und-Pipes application .

Eigenschaften

Application

Die Standardimplementierung für .ConnectionContext

ConnectionClosed

Ruft das ab, das CancellationToken ausgelöst wird, wenn die Verbindung geschlossen wird, oder legt diesen fest.

ConnectionId

Ruft den Verbindungsbezeichner ab oder legt diese fest.

Features

Ruft die Sammlung von Features ab, die vom Server und der Middleware bereitgestellt werden, die für diese Verbindung verfügbar sind.

Items

Ruft die Elemente ab, die der Verbindung zugeordnet sind, oder legt sie fest.

LocalEndPoint

Ruft den lokalen EndPointab oder legt diese fest.

LocalEndPoint

Ruft den lokalen Endpunkt für diese Verbindung ab oder legt diesen fest.

(Geerbt von ConnectionContext)
RemoteEndPoint

Ruft die Remote ab EndPointoder legt sie fest.

RemoteEndPoint

Ruft den Remoteendpunkt für diese Verbindung ab oder legt diesen fest.

(Geerbt von ConnectionContext)
Transport

Ruft den Transport für die Verbindung ab oder legt diese fest.

User

Ruft den Benutzer ab, der der Verbindung zugeordnet ist, oder legt diese fest.

Methoden

Abort()

Die Standardimplementierung für .ConnectionContext

Abort()

Bricht die zugrunde liegende Verbindung ab.

(Geerbt von ConnectionContext)
Abort(ConnectionAbortedException)

Bricht die zugrunde liegende Verbindung ab.

Abort(ConnectionAbortedException)

Bricht die zugrunde liegende Verbindung ab.

(Geerbt von ConnectionContext)
Dispose()

Die Standardimplementierung für .ConnectionContext

DisposeAsync()

Gibt Ressourcen für die zugrunde liegende Verbindung frei.

DisposeAsync()

Gibt Ressourcen für die zugrunde liegende Verbindung frei.

(Geerbt von ConnectionContext)

Erweiterungsmethoden

GetHttpContext(ConnectionContext)

Ruft die ab, die HttpContext der Verbindung zugeordnet ist, falls vorhanden.

Gilt für: