Skip to main content

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
TypeName
System.TimeSpantimeout
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
TypeName
System.TimeSpantimeout
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
TypeName
System.Threading.WaitHandle[]waitHandles
System.TimeSpantimeout

ExecuteAsyncCommandExec(TimeSpan, IEnumerable<ICommandExec>)

View Source
Declaration
public static void ExecuteAsyncCommandExec(TimeSpan timeout, IEnumerable<ICommandExec> commands)
Parameters
TypeName
System.TimeSpantimeout
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
TypeName
System.Collections.Generic.IEnumerable<ServiceStack.Commands.ICommandExec>commands