 | 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
Syntaxpublic static IJsonRpcBuilder AddJsonRpc(
this IServiceCollection serviceCollection,
Action<JsonRpcOptions> setupAction
)
<ExtensionAttribute>
Public Shared Function AddJsonRpc (
serviceCollection As IServiceCollection,
setupAction As Action(Of JsonRpcOptions)
) As IJsonRpcBuilder
Dim serviceCollection As IServiceCollection
Dim setupAction As Action(Of JsonRpcOptions)
Dim returnValue As IJsonRpcBuilder
returnValue = serviceCollection.AddJsonRpc(setupAction)
public:
[ExtensionAttribute]
static IJsonRpcBuilder^ AddJsonRpc(
IServiceCollection^ serviceCollection,
Action<JsonRpcOptions^>^ setupAction
)
[<ExtensionAttribute>]
static member AddJsonRpc :
serviceCollection : IServiceCollection *
setupAction : Action<JsonRpcOptions> -> IJsonRpcBuilder
Parameters
- serviceCollection
- Type: IServiceCollection
The service collection. - setupAction
- Type: SystemActionJsonRpcOptions
The delegate used to configure the JsonRpcServiceHostBuilder.
Return Value
Type:
IJsonRpcBuilderA 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