Click or drag to resize

JsonRpcAspNetExtensionsAddJsonRpc Method

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

Namespace:  JsonRpc.AspNetCore
Assembly:  JsonRpc.AspNetCore (in JsonRpc.AspNetCore.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
public static IJsonRpcBuilder AddJsonRpc(
	this IServiceCollection serviceCollection,
	Action<JsonRpcOptions> setupAction
)

Parameters

serviceCollection
Type: IServiceCollection
The service collection.
setupAction
Type: SystemActionJsonRpcOptions
The delegate used to configure the JsonRpcServiceHostBuilder.

Return Value

Type: IJsonRpcBuilder
A builder used to register JSON RPC services and middlewares.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IServiceCollection. 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).
See Also