Compartilhar via


DefaultConnectionContext Classe

Definição

A implementação padrão para o 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
Herança
DefaultConnectionContext
Herança
Implementações

Construtores

DefaultConnectionContext()

Cria o DefaultConnectionContext sem Pipes para evitar alocações antecipadas. Espera-se que o chamador defina os Transport pipes e Application manualmente.

DefaultConnectionContext(String)

Cria o DefaultConnectionContext sem Pipes para evitar alocações antecipadas. Espera-se que o chamador defina os Transport pipes e Application manualmente.

DefaultConnectionContext(String, IDuplexPipe, IDuplexPipe)

Cria o DefaultConnectionContext com os pipes e application fornecidostransport.

Propriedades

Application

A implementação padrão para o ConnectionContext.

ConnectionClosed

Obtém ou define o CancellationToken que é disparado quando a conexão é fechada.

ConnectionId

Obtém ou define o identificador de conexão.

Features

Obtém a coleção de recursos fornecidos pelo servidor e pelo middleware disponíveis nessa conexão.

Items

Obtém ou define os itens associados à conexão.

LocalEndPoint

Obtém ou define o local EndPoint.

LocalEndPoint

Obtém ou define o ponto de extremidade local para essa conexão.

(Herdado de ConnectionContext)
RemoteEndPoint

Obtém ou define o remoto EndPoint.

RemoteEndPoint

Obtém ou define o ponto de extremidade remoto para essa conexão.

(Herdado de ConnectionContext)
Transport

Obtém ou define o transporte para a conexão.

User

Obtém ou define o usuário associado à conexão.

Métodos

Abort()

A implementação padrão para o ConnectionContext.

Abort()

Anula a conexão subjacente.

(Herdado de ConnectionContext)
Abort(ConnectionAbortedException)

Anula a conexão subjacente.

Abort(ConnectionAbortedException)

Anula a conexão subjacente.

(Herdado de ConnectionContext)
Dispose()

A implementação padrão para o ConnectionContext.

DisposeAsync()

Libera recursos para a conexão subjacente.

DisposeAsync()

Libera recursos para a conexão subjacente.

(Herdado de ConnectionContext)

Métodos de Extensão

GetHttpContext(ConnectionContext)

Obtém o HttpContext associado à conexão, se houver um.

Aplica-se a