DefaultConnectionContext Classe

Définition

Implémentation par défaut pour .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
Héritage
DefaultConnectionContext
Héritage
Implémente

Constructeurs

DefaultConnectionContext()

Crée le DefaultConnectionContext sans canaux pour éviter les allocations initiales. L’appelant est censé définir manuellement les Transport canaux et Application .

DefaultConnectionContext(String)

Crée le DefaultConnectionContext sans canaux pour éviter les allocations initiales. L’appelant est censé définir manuellement les Transport canaux et Application .

DefaultConnectionContext(String, IDuplexPipe, IDuplexPipe)

Crée le DefaultConnectionContext avec les canaux et application donnéstransport.

Propriétés

Application

Implémentation par défaut pour .ConnectionContext

ConnectionClosed

Obtient ou définit le CancellationToken qui est déclenché lorsque la connexion est fermée.

ConnectionId

Obtient ou définit l’identificateur de connexion.

Features

Obtient la collection de fonctionnalités fournies par le serveur et l’intergiciel disponibles sur cette connexion.

Items

Obtient ou définit les éléments associés à la connexion.

LocalEndPoint

Obtient ou définit le local EndPoint.

LocalEndPoint

Obtient ou définit le point de terminaison local pour cette connexion.

(Hérité de ConnectionContext)
RemoteEndPoint

Obtient ou définit le distant EndPoint.

RemoteEndPoint

Obtient ou définit le point de terminaison distant pour cette connexion.

(Hérité de ConnectionContext)
Transport

Obtient ou définit le transport de la connexion.

User

Obtient ou définit l’utilisateur associé à la connexion.

Méthodes

Abort()

Implémentation par défaut pour .ConnectionContext

Abort()

Annule la connexion sous-jacente.

(Hérité de ConnectionContext)
Abort(ConnectionAbortedException)

Annule la connexion sous-jacente.

Abort(ConnectionAbortedException)

Annule la connexion sous-jacente.

(Hérité de ConnectionContext)
Dispose()

Implémentation par défaut pour .ConnectionContext

DisposeAsync()

Libère des ressources pour la connexion sous-jacente.

DisposeAsync()

Libère des ressources pour la connexion sous-jacente.

(Hérité de ConnectionContext)

Méthodes d’extension

GetHttpContext(ConnectionContext)

Obtient le HttpContext associé à la connexion, le cas échéant.

S’applique à