Method | Description | |
---|---|---|
AddRequestProcessor ( IRequestProcessor processor ) : void |
Add the pre-processor for request, for example the authentication processor
|
|
AddTaskHandler ( |
||
AddTaskHandler ( object taskHandlerDescriptorInstance, string endpointPrefix ) : void | ||
BeginSuspend ( ) : void | ||
Create ( string address, uint servicePort, ZmqContext context = null ) : |
||
Create ( string address, uint servicePort, string workerId, ZmqContext context = null ) : |
||
EndSuspend ( ) : void | ||
GetAvailableTasks ( ) : IList |
||
RemoveAllResolvers ( ) : void | ||
SetMethodCallAuthorizer ( IMethodCallAuthorizer methodCallAuthorizer ) : void | ||
SetMethodCallLogger ( IMethodCallLogger methodCallLogger ) : void | ||
Start ( ) : void |
Loop threads for publisher and replyer
|
Method | Description | |
---|---|---|
AuthorizeMethod ( |
||
LogMethodCall ( |
Logs method invocation
|
|
OnStarted ( ) : void |
Dispatcher for started event
|
|
OnStopped ( ) : void |
Dispatcher for stopped event
|
|
PreprocessRequest ( |
Any preprocessing could be handled here. E.g decrypt, unzipped etc
|
|
ProcessRequest ( |
Process the request and all the responses (including errors) will be wrapped in json response The resolver will perform necessary checking against the request based on custom method attributes being requested and request information
|
|
StartHandleRequest ( uint port ) : void |
Need framing here to separate the JSON data and the command/instruction | COMMAND | HEADER | JSON DATA |
|
|
ValidateRequest ( |
||
Worker ( string address, uint servicePort, string workerId, ZmqContext context = null ) : System |
public AddRequestProcessor ( IRequestProcessor processor ) : void | ||
processor | IRequestProcessor | |
return | void |
public AddTaskHandler ( |
||
taskHandlerDescriptor | ||
return | void |
public AddTaskHandler ( object taskHandlerDescriptorInstance, string endpointPrefix ) : void | ||
taskHandlerDescriptorInstance | object | |
endpointPrefix | string | |
return | void |
public static Create ( string address, uint servicePort, ZmqContext context = null ) : |
||
address | string | |
servicePort | uint | |
context | ZmqContext | |
return |
public static Create ( string address, uint servicePort, string workerId, ZmqContext context = null ) : |
||
address | string | |
servicePort | uint | |
workerId | string | |
context | ZmqContext | |
return |
public SetMethodCallAuthorizer ( IMethodCallAuthorizer methodCallAuthorizer ) : void | ||
methodCallAuthorizer | IMethodCallAuthorizer | |
return | void |
public SetMethodCallLogger ( IMethodCallLogger methodCallLogger ) : void | ||
methodCallLogger | IMethodCallLogger | |
return | void |