Click or drag to resize

JsonRpcAspNetExtensionsUseJsonRpc Method (IApplicationBuilder, String)

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

Uses AspNetCoreRpcServerHandler to handle the JSON RPC requests on certain URL.

Namespace:  JsonRpc.AspNetCore
Assembly:  JsonRpc.AspNetCore (in JsonRpc.AspNetCore.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
public static IApplicationBuilder UseJsonRpc(
	this IApplicationBuilder builder,
	string requestPath
)

Parameters

builder
Type: IApplicationBuilder
The application builder.
requestPath
Type: SystemString
The request path that should be treated as JSON RPC call.

Return Value

Type: IApplicationBuilder
The application builder.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IApplicationBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
This overload uses dependency injection to find the AspNetCoreRpcServerHandler instance.
See Also