Class ServantService
- Namespace
- Dynamicweb.Load
Balancing .Service
- Assembly
- Dynamicweb.Core.dll
This service handles all internal command execution on the current node.
- Inheritance
-
Servant
Service
- Inherited Members
Methods
Drop(string)
Unregisters a function by name.
Parameters
name
string
Returns
- bool
wasDropped
Enqueue(Command)
Enqueues a command.
Parameters
command
CommandCommand to add
Enroll(string, Func<string, ApplicationResponse<string>>)
Registers a function that can be called later by using the name specified.
Parameters
name
stringName of function
serviceAction
Func<string, ApplicationResponse <string>>Function
Returns
- bool
wasEnrolled
IsEmpty()
Indicates if queue is empty.
Returns
- bool
isEmpty
ProcessAll()
Processes all commands in the queue.
Returns
ProcessNext()
Processes the next command in the queue, if any exist, and returns a result.
Returns
- Application
Response <string> result