Click or drag to resize

AspNetCoreRpcServerHandler Class

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

A JsonRpcServerHandler that transfers the requests from either a middleware or in the MVC controller.
Inheritance Hierarchy
SystemObject
  JsonRpc.ServerJsonRpcServerHandler
    JsonRpc.AspNetCoreAspNetCoreRpcServerHandler

Namespace:  JsonRpc.AspNetCore
Assembly:  JsonRpc.AspNetCore (in JsonRpc.AspNetCore.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
public class AspNetCoreRpcServerHandler : JsonRpcServerHandler

The AspNetCoreRpcServerHandler type exposes the following members.

Constructors
  NameDescription
Public methodAspNetCoreRpcServerHandler
Initializes a new instance of the AspNetCoreRpcServerHandler class
Top
Properties
  NameDescription
Public propertyDefaultFeatures
Gets/sets the default features applied to the RequestContext.
(Inherited from JsonRpcServerHandler.)
Public propertyEmitContentCharset
Whether to follow the ResponseContentType with a "charset=xxx" part when writing messages to the stream. This property has no effect if ResponseContentType is null.
Public propertyEncoding
Encoding of the emitted messages.
Public propertyResponseContentType
Content-Type header value of the emitted messages.
Public propertyServiceHost
Gets the underlying IJsonRpcServiceHost.
(Inherited from JsonRpcServerHandler.)
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.)
Protected methodGetStatusCodeFromResponse
Gets corresponding HTTP status code from a specific JSON-RPC response.
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 methodProcessRequestAsync(HttpContext)
Processes the JSON-RPC request contained in the HTTP request body, and writes the response to the HTTP response body.
Public methodProcessRequestAsync(RequestMessage, HttpContext)
Processes the specified JSON-RPC request with certain HttpContext, and returns the response.
Public methodProcessRequestAsync(RequestMessage, HttpContext, Boolean)
Processes the specified JSON-RPC request with certain HttpContext, and returns the response.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodWriteResponseAsync
Asynchronously writes JSON-RPC response to the HTTP response.
Top
See Also