메소드 | 설명 | |
---|---|---|
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 |