DefaultConnectionContext Třída

Definice

Výchozí implementace pro 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 IConnectionEndPointFeature
    interface IConnectionIdFeature
    interface IConnectionItemsFeature
    interface IConnectionLifetimeFeature
    interface IConnectionTransportFeature
    interface IConnectionUserFeature
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
Dědičnost
DefaultConnectionContext
Dědičnost
Implementuje

Konstruktory

DefaultConnectionContext()

DefaultConnectionContext Vytvoří bez kanálů, aby se zabránilo počátečním přidělením. Volající má nastavit Transport kanály a Application kanály ručně.

DefaultConnectionContext(String)

DefaultConnectionContext Vytvoří bez kanálů, aby se zabránilo počátečním přidělením. Volající má nastavit Transport kanály a Application kanály ručně.

DefaultConnectionContext(String, IDuplexPipe, IDuplexPipe)

Vytvoří DefaultConnectionContext se zadanými transport kanály a application kanály.

Vlastnosti

Application System.Object.Application
ConnectionClosed

Získá nebo nastaví CancellationToken , který se aktivuje při zavření připojení.

ConnectionId

Získá nebo nastaví identifikátor připojení.

Features

Získá kolekci funkcí poskytovaných serverem a middlewarem dostupným v tomto připojení.

Items

Získá nebo nastaví položky přidružené k připojení.

LocalEndPoint

Získá nebo nastaví místní EndPoint.

LocalEndPoint

Získá nebo nastaví místní koncový bod pro toto připojení.

(Zděděno od ConnectionContext)
RemoteEndPoint

Získá nebo nastaví vzdálený EndPoint.

RemoteEndPoint

Získá nebo nastaví vzdálený koncový bod pro toto připojení.

(Zděděno od ConnectionContext)
Transport

Získá nebo nastaví přenos pro spojení.

User

Získá nebo nastaví uživatele přidruženého k připojení.

Metody

Abort()
Abort()

Přeruší základní připojení.

(Zděděno od ConnectionContext)
Abort(ConnectionAbortedException)

Přeruší základní připojení.

Abort(ConnectionAbortedException)

Přeruší základní připojení.

(Zděděno od ConnectionContext)
Dispose()
DisposeAsync()

Uvolní prostředky pro základní připojení.

DisposeAsync()

Uvolní prostředky pro základní připojení.

(Zděděno od ConnectionContext)

Metody rozšíření

GetHttpContext(ConnectionContext)

HttpContext Získá přidružené k připojení, pokud existuje.

Platí pro