Click or drag to resize

RequestContext Class

[This is preliminary documentation and is subject to change.]

Provides the context per JSON RPC request.
Inheritance Hierarchy
SystemObject
  JsonRpc.ServerRequestContext

Namespace:  JsonRpc.Server
Assembly:  JsonRpc.Commons (in JsonRpc.Commons.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
public class RequestContext

The RequestContext type exposes the following members.

Constructors
  NameDescription
Public methodRequestContext
Initializes a new instance of the RequestContext class
Top
Properties
  NameDescription
Public propertyCancellationToken
The CancellationToken used to cancel this request. This token may be checked in the RPC method.
Public propertyFeatures
The features provided with the request.
Public propertyRequest
Gets the request message.
Public propertyResponse
The response message to be sent. If this property is not null, it will take precedence to the return value of the invoked CLR method.
Public propertyServiceFactory
The factory that creates the JSON RPC service instances to handle the requests.
Public propertyServiceHost
Gets the service host that initiates this request.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodGetHttpContext
Gets the HttpContext containing the JSON RPC request.
(Defined by JsonRpcAspNetExtensions.)
Top
See Also