Bagikan melalui


DefaultConnectionContext Kelas

Definisi

Implementasi default untuk 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
Warisan
DefaultConnectionContext
Warisan
Penerapan

Konstruktor

DefaultConnectionContext()

DefaultConnectionContext Membuat tanpa Pipa untuk menghindari alokasi di muka. Penelepon diharapkan mengatur Transport pipa dan Application secara manual.

DefaultConnectionContext(String)

DefaultConnectionContext Membuat tanpa Pipa untuk menghindari alokasi di muka. Penelepon diharapkan mengatur Transport pipa dan Application secara manual.

DefaultConnectionContext(String, IDuplexPipe, IDuplexPipe)

Membuat DefaultConnectionContext dengan pipa dan application yang diberikantransport.

Properti

Application

Implementasi default untuk ConnectionContext.

ConnectionClosed

Mendapatkan atau mengatur CancellationToken yang dipicu saat koneksi ditutup.

ConnectionId

Mendapatkan atau mengatur pengidentifikasi koneksi.

Features

Mendapatkan kumpulan fitur yang disediakan oleh server dan middleware yang tersedia pada koneksi ini.

Items

Mendapatkan atau mengatur item yang terkait dengan koneksi.

LocalEndPoint

Mendapatkan atau mengatur lokal EndPoint.

LocalEndPoint

Mendapatkan atau mengatur titik akhir lokal untuk koneksi ini.

(Diperoleh dari ConnectionContext)
RemoteEndPoint

Mendapatkan atau mengatur jarak jauh EndPoint.

RemoteEndPoint

Mendapatkan atau menyetel titik akhir jarak jauh untuk sambungan ini.

(Diperoleh dari ConnectionContext)
Transport

Mendapatkan atau mengatur transportasi untuk koneksi.

User

Mendapatkan atau mengatur pengguna yang terkait dengan koneksi.

Metode

Abort()

Implementasi default untuk ConnectionContext.

Abort()

Membatalkan koneksi yang mendasar.

(Diperoleh dari ConnectionContext)
Abort(ConnectionAbortedException)

Membatalkan koneksi yang mendasar.

Abort(ConnectionAbortedException)

Membatalkan koneksi yang mendasar.

(Diperoleh dari ConnectionContext)
Dispose()

Implementasi default untuk ConnectionContext.

DisposeAsync()

Merilis sumber daya untuk koneksi yang mendasar.

DisposeAsync()

Merilis sumber daya untuk koneksi yang mendasar.

(Diperoleh dari ConnectionContext)

Metode Ekstensi

GetHttpContext(ConnectionContext)

Mendapatkan yang HttpContext terkait dengan koneksi, jika ada.

Berlaku untuk