WebSocketContext Classe

Definição

Usado para acessar as informações no handshake do WebSocket.Used for accessing the information in the WebSocket handshake.

public ref class WebSocketContext abstract
public abstract class WebSocketContext
type WebSocketContext = class
Public MustInherit Class WebSocketContext
Herança
WebSocketContext
Derivado

Construtores

WebSocketContext()

Cria uma instância de WebSocketContext classe.Creates an instance of the WebSocketContext class.

Propriedades

CookieCollection

Os cookies que foram transmitidos para o servidor durante o handshake de abertura.The cookies that were passed to the server during the opening handshake.

Headers

Os cabeçalhos HTTP que foram enviados ao servidor durante o handshake de abertura.The HTTP headers that were sent to the server during the opening handshake.

IsAuthenticated

Se o cliente do WebSocket é autenticado.Whether the WebSocket client is authenticated.

IsLocal

Se o cliente do WebSocket se conectou do computador local.Whether the WebSocket client connected from the local machine.

IsSecureConnection

Se a conexão WebSocket é protegida usando SSL (protocolo SSL).Whether the WebSocket connection is secured using Secure Sockets Layer (SSL).

Origin

O valor do cabeçalho Origin HTTP incluído no handshake de abertura.The value of the Origin HTTP header included in the opening handshake.

RequestUri

O URI solicitado pelo cliente do WebSocket.The URI requested by the WebSocket client.

SecWebSocketKey

O valor do cabeçalho SecWebSocketKey HTTP incluído no handshake de abertura.The value of the SecWebSocketKey HTTP header included in the opening handshake.

SecWebSocketProtocols

O valor do cabeçalho SecWebSocketKey HTTP incluído no handshake de abertura.The value of the SecWebSocketKey HTTP header included in the opening handshake.

SecWebSocketVersion

A lista de subprotocolos solicitada pelo cliente do WebSocket.The list of subprotocols requested by the WebSocket client.

User

Um objeto usado para obter identidade, informações de autenticação e funções de segurança para o cliente WebSocket.An object used to obtain identity, authentication information, and security roles for the WebSocket client.

WebSocket

A instância WebSocket usada para interagir (enviar/receber/fechar/etc.) com a conexão WebSocket.The WebSocket instance used to interact (send/receive/close/etc) with the WebSocket connection.

Métodos

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)

Aplica-se a