Skip to main content

ActionExecExtensions

Assembly: ServiceStack.Common.dll
View Source
Declaration
public static class ActionExecExtensions

Methods

ExecAllAndWait(ICollection<Action>, TimeSpan)

View Source
Declaration
public static void ExecAllAndWait(this ICollection<Action> actions, TimeSpan timeout)
Parameters
TypeName
System.Collections.Generic.ICollection<System.Action>actions
System.TimeSpantimeout

ExecAsync(IEnumerable<Action>)

View Source
Declaration
public static List<WaitHandle> ExecAsync(this IEnumerable<Action> actions)
Returns

System.Collections.Generic.List<System.Threading.WaitHandle>

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.Action>actions

WaitAll(List<WaitHandle>, Int32)

View Source
Declaration
public static bool WaitAll(this List<WaitHandle> waitHandles, int timeoutMs)
Returns

System.Boolean

Parameters
TypeName
System.Collections.Generic.List<System.Threading.WaitHandle>waitHandles
System.Int32timeoutMs

WaitAll(ICollection<WaitHandle>, Int32)

View Source
Declaration
public static bool WaitAll(this ICollection<WaitHandle> waitHandles, int timeoutMs)
Returns

System.Boolean

Parameters
TypeName
System.Collections.Generic.ICollection<System.Threading.WaitHandle>waitHandles
System.Int32timeoutMs

WaitAll(ICollection<WaitHandle>, TimeSpan)

View Source
Declaration
public static bool WaitAll(this ICollection<WaitHandle> waitHandles, TimeSpan timeout)
Returns

System.Boolean

Parameters
TypeName
System.Collections.Generic.ICollection<System.Threading.WaitHandle>waitHandles
System.TimeSpantimeout

WaitAll(List<IAsyncResult>, TimeSpan)

View Source
Declaration
public static bool WaitAll(this List<IAsyncResult> asyncResults, TimeSpan timeout)
Returns

System.Boolean

Parameters
TypeName
System.Collections.Generic.List<System.IAsyncResult>asyncResults
System.TimeSpantimeout

WaitAll(WaitHandle[], TimeSpan)

View Source
Declaration
public static bool WaitAll(WaitHandle[] waitHandles, TimeSpan timeout)
Returns

System.Boolean

Parameters
TypeName
System.Threading.WaitHandle[]waitHandles
System.TimeSpantimeout

WaitAll(WaitHandle[], Int32)

View Source
Declaration
public static bool WaitAll(WaitHandle[] waitHandles, int timeOutMs)
Returns

System.Boolean

Parameters
TypeName
System.Threading.WaitHandle[]waitHandles
System.Int32timeOutMs