 | DefaultServiceFactoryCreateService 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
Syntaxpublic IJsonRpcService CreateService(
Type serviceType,
RequestContext context
)
Public Function CreateService (
serviceType As Type,
context As RequestContext
) As IJsonRpcService
Dim instance As DefaultServiceFactory
Dim serviceType As Type
Dim context As RequestContext
Dim returnValue As IJsonRpcService
returnValue = instance.CreateService(serviceType,
context)
public:
virtual IJsonRpcService^ CreateService(
Type^ serviceType,
RequestContext^ context
) sealed
abstract CreateService :
serviceType : Type *
context : RequestContext -> IJsonRpcService
override 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.
Implements
IServiceFactoryCreateService(Type, RequestContext)
Exceptions
See Also