Class ActionSequence<T>
- Namespace
- Dynamicweb.LoadBalancing
- Assembly
- Dynamicweb.LoadBalancing.dll
public class ActionSequence<T> where T : Command
Type Parameters
T
- Inheritance
-
ActionSequence<T>
- Inherited Members
Methods
Drop(string)
public bool Drop(string name)
Parameters
name
string
Returns
Enqueue(T)
Enqueues a command.
public void Enqueue(T command)
Parameters
command
T- Command to add
Enroll(string, Func<string, ApplicationResponse<string>>)
public bool Enroll(string name, Func<string, ApplicationResponse<string>> serviceAction)
Parameters
name
stringserviceAction
Func<string, ApplicationResponse<string>>
Returns
IsEmpty()
Indicates if sequence is empty.
public bool IsEmpty()
Returns
- bool
- isEmpty
ProcessAll()
public List<ApplicationResponse<string>> ProcessAll()
Returns
ProcessNext()
public ApplicationResponse<string> ProcessNext()