 | 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
SyntaxIJsonRpcService CreateService(
Type serviceType,
RequestContext context
)
Function CreateService (
serviceType As Type,
context As RequestContext
) As IJsonRpcService
Dim instance As IServiceFactory
Dim serviceType As Type
Dim context As RequestContext
Dim returnValue As IJsonRpcService
returnValue = instance.CreateService(serviceType,
context)
IJsonRpcService^ CreateService(
Type^ serviceType,
RequestContext^ context
)
abstract CreateService :
serviceType : Type *
context : RequestContext -> IJsonRpcService
Parameters
- serviceType
- Type: SystemType
The desired service type. - context
- Type: JsonRpc.ServerRequestContext
The request context.
Return Value
Type:
IJsonRpcServiceA service instance.
Exceptions
See Also