CommandsUtils
Assembly: ServiceStack.Common.dll
View Source
Declaration
public class CommandsUtils
Methods
ExecuteAsyncCommandList<T>(TimeSpan, ICommandList<T>[])
View Source
Declaration
public static List<T> ExecuteAsyncCommandList<T>(TimeSpan timeout, params ICommandList<T>[] commands)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.TimeSpan | timeout |
ServiceStack.Commands.ICommandList<<T>>[] | commands |
Type Parameters
T
ExecuteAsyncCommandList<T>(TimeSpan, IEnumerable<ICommandList<T>>)
View Source
Declaration
public static List<T> ExecuteAsyncCommandList<T>(TimeSpan timeout, IEnumerable<ICommandList<T>> commands)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.TimeSpan | timeout |
System.Collections.Generic.IEnumerable<ServiceStack.Commands.ICommandList<<T>>> | commands |
Type Parameters
T
WaitAll(WaitHandle[], TimeSpan)
View Source
Declaration
public static void WaitAll(WaitHandle[] waitHandles, TimeSpan timeout)
Parameters
Type | Name |
---|---|
System.Threading.WaitHandle[] | waitHandles |
System.TimeSpan | timeout |
ExecuteAsyncCommandExec(TimeSpan, IEnumerable<ICommandExec>)
View Source
Declaration
public static void ExecuteAsyncCommandExec(TimeSpan timeout, IEnumerable<ICommandExec> commands)
Parameters
Type | Name |
---|---|
System.TimeSpan | timeout |
System.Collections.Generic.IEnumerable<ServiceStack.Commands.ICommandExec> | commands |
ExecuteAsyncCommandExec(IEnumerable<ICommandExec>)
Provide the an option for the callee to block until all commands are executed
View Source
Declaration
public static List<WaitHandle> ExecuteAsyncCommandExec(IEnumerable<ICommandExec> commands)
Returns
System.Collections.Generic.List<System.Threading.WaitHandle>
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<ServiceStack.Commands.ICommandExec> | commands |