DefaultConnectionContext Classe

Definizione

Implementazione predefinita per .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
Ereditarietà
DefaultConnectionContext
Ereditarietà
Implementazioni

Costruttori

DefaultConnectionContext()

Crea senza DefaultConnectionContext pipe per evitare allocazioni iniziali. Il chiamante deve impostare manualmente le Transport pipe e Application .

DefaultConnectionContext(String)

Crea senza DefaultConnectionContext pipe per evitare allocazioni iniziali. Il chiamante deve impostare manualmente le Transport pipe e Application .

DefaultConnectionContext(String, IDuplexPipe, IDuplexPipe)

Crea defaultConnectionContext con le pipe e application specificatitransport.

Proprietà

Application

Implementazione predefinita per .ConnectionContext

ConnectionClosed

Ottiene o imposta l'oggetto CancellationToken attivato quando la connessione viene chiusa.

ConnectionId

Ottiene o imposta l'identificatore di connessione.

Features

Ottiene la raccolta di funzionalità fornite dal server e dal middleware disponibili in questa connessione.

Items

Ottiene o imposta gli elementi associati alla connessione.

LocalEndPoint

Ottiene o imposta l'oggetto locale EndPoint.

LocalEndPoint

Ottiene o imposta l'endpoint locale per questa connessione.

(Ereditato da ConnectionContext)
RemoteEndPoint

Ottiene o imposta l'oggetto remoto EndPoint.

RemoteEndPoint

Ottiene o imposta l'endpoint remoto per questa connessione.

(Ereditato da ConnectionContext)
Transport

Ottiene o imposta il trasporto per la connessione.

User

Ottiene o imposta l'utente associato alla connessione.

Metodi

Abort()

Implementazione predefinita per .ConnectionContext

Abort()

Interrompe la connessione sottostante.

(Ereditato da ConnectionContext)
Abort(ConnectionAbortedException)

Interrompe la connessione sottostante.

Abort(ConnectionAbortedException)

Interrompe la connessione sottostante.

(Ereditato da ConnectionContext)
Dispose()

Implementazione predefinita per .ConnectionContext

DisposeAsync()

Rilascia le risorse per la connessione sottostante.

DisposeAsync()

Rilascia le risorse per la connessione sottostante.

(Ereditato da ConnectionContext)

Metodi di estensione

GetHttpContext(ConnectionContext)

Ottiene l'oggetto HttpContext associato alla connessione, se presente.

Si applica a