Метод | Описание | |
---|---|---|
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
|
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public AddTaskHandler ( |
||
taskHandlerDescriptor | ||
Результат | void |
public AddTaskHandler ( object taskHandlerDescriptorInstance, string endpointPrefix ) : void | ||
taskHandlerDescriptorInstance | object | |
endpointPrefix | string | |
Результат | void |
public static Create ( string address, uint servicePort, ZmqContext context = null ) : |
||
address | string | |
servicePort | uint | |
context | ZmqContext | |
Результат |
public static Create ( string address, uint servicePort, string workerId, ZmqContext context = null ) : |
||
address | string | |
servicePort | uint | |
workerId | string | |
context | ZmqContext | |
Результат |
public SetMethodCallAuthorizer ( IMethodCallAuthorizer methodCallAuthorizer ) : void | ||
methodCallAuthorizer | IMethodCallAuthorizer | |
Результат | void |
public SetMethodCallLogger ( IMethodCallLogger methodCallLogger ) : void | ||
methodCallLogger | IMethodCallLogger | |
Результат | void |