Click or drag to resize

IServiceFactoryCreateService Method

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

Creates the specified JSON RPC service instance.

Namespace:  JsonRpc.Server
Assembly:  JsonRpc.Commons (in JsonRpc.Commons.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
IJsonRpcService CreateService(
	Type serviceType,
	RequestContext context
)

Parameters

serviceType
Type: SystemType
The desired service type.
context
Type: JsonRpc.ServerRequestContext
The request context.

Return Value

Type: IJsonRpcService
A service instance.
Exceptions
ExceptionCondition
ArgumentNullExceptionserviceType is null.
ArgumentExceptionserviceType is not a derived type of IJsonRpcService.
See Also