AspNetWebSocketContext Class

Definition

Provides a base class that represents contextual details about an individual AspNetWebSocket request.

public ref class AspNetWebSocketContext abstract : System::Net::WebSockets::WebSocketContext
public abstract class AspNetWebSocketContext : System.Net.WebSockets.WebSocketContext
type AspNetWebSocketContext = class
    inherit WebSocketContext
Public MustInherit Class AspNetWebSocketContext
Inherits WebSocketContext
Inheritance
AspNetWebSocketContext

Constructors

AspNetWebSocketContext()

When implemented in a derived class, initializes a new instance of the AspNetWebSocketContext class.

Properties

AnonymousID

Gets the anonymous-user identifier for the current AspNetWebSocket connection.

Application

Gets the HttpApplicationState object for the host ASP.NET application.

ApplicationPath

Gets the root virtual path of the host ASP.NET application.

Cache

Gets the Cache object for the current application domain.

ClientCertificate

Gets the certificate that a remote client issues in response to the server's request for the client's identity.

ConnectionCount

Gets the number of active WebSocket connections.

CookieCollection

Returns the Cookies collection typed as a CookieCollection for Windows applications that use cookies based on the Cookie class (such as WCF server applications).

Cookies

Gets the collection of cookies that was sent by a remote client in an AspNetWebSocket message.

FilePath

Gets the virtual path of the requested file.

Headers

Gets the collection of headers that was sent by a remote client.

IsAuthenticated

Gets a value that indicates whether a message from a remote client has been authenticated.

IsClientConnected

Gets a value that indicates whether the client is connected to the server.

IsDebuggingEnabled

Gets a value that indicates whether the application that hosts the current AspNetWebSocket connection is running in ASP.NET debug mode.

IsLocal

Gets a value that indicates whether an AspNetWebSocket message was sent from the local computer.

IsSecureConnection

Gets a value that indicates whether the AspNetWebSocket connection uses the WebSocket Secure protocol (WSS).

Items

When overridden in a derived class, gets a key/value collection that can be used to share data between a module and a handler during an AspNetWebSocket request.

LogonUserIdentity

Gets the security token for the current user.

Origin

Gets the origin of the WebSocket connection.

Path

Gets the virtual path of the requested resource.

PathInfo

Gets additional path information for a resource that has a URL extension.

Profile

Gets an object that contains user profile data.

QueryString

Gets the collection of query string variables from an AspNetWebSocket message that was sent by the client.

RawUrl

Gets the portion of a URL that follows the website name in an AspNetWebSocket message that was sent by the client.

RequestUri

Gets the original Uniform Resource Identifier (URI) of an AspNetWebSocket message that was sent by the client.

SecWebSocketKey

Gets the encrypted key that is sent in the handshake request to establish an AspNetWebSocket connection.

SecWebSocketProtocols

Gets a list of application-level protocols (subprotocols) that a client can use to send messages using an AspNetWebSocket connection.

SecWebSocketVersion

Gets the version of the WebSocket protocol that an AspNetWebSocket connection must use.

Server

Gets the HttpServerUtility object that provides methods that are used in processing requests.

ServerVariables

Gets a name/value collection of variables that provide information about the web server and about the current AspNetWebSocket connection.

Timestamp

Gets the timestamp of an AspNetWebSocket message that was sent by the client.

Unvalidated

Gets unvalidated versions of one or more field values that are submitted in an AspNetWebSocket message.

UrlReferrer

Gets a collection of URI data about the message that was sent by the client prior to the current message.

User

Gets an object that represents the security context of the user for the current AspNetWebSocket connection.

UserAgent

Gets the name of the remote client.

UserHostAddress

Gets the IP address of the remote client.

UserHostName

Gets the DNS name of the remote client.

UserLanguages

Gets the collection of language preferences for the remote client.

WebSocket

Gets a reference to the current AspNetWebSocket instance.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to