Skip to main content

IntExtensions

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

Methods

Times(Int32)

View Source
Declaration
public static IEnumerable<int> Times(this int times)
Returns

System.Collections.Generic.IEnumerable<System.Int32>

Parameters
TypeName
System.Int32times

Times(Int32, Action<Int32>)

View Source
Declaration
public static void Times(this int times, Action<int> actionFn)
Parameters
TypeName
System.Int32times
System.Action<System.Int32>actionFn

Times(Int32, Action)

View Source
Declaration
public static void Times(this int times, Action actionFn)
Parameters
TypeName
System.Int32times
System.ActionactionFn

Times<T>(Int32, Func<T>)

View Source
Declaration
public static List<T> Times<T>(this int times, Func<T> actionFn)
Returns

System.Collections.Generic.List<<T>>

Parameters
TypeName
System.Int32times
System.Func<<T>>actionFn
Type Parameters
  • T

Times<T>(Int32, Func<Int32, T>)

View Source
Declaration
public static List<T> Times<T>(this int times, Func<int, T> actionFn)
Returns

System.Collections.Generic.List<<T>>

Parameters
TypeName
System.Int32times
System.Func<System.Int32,<T>>actionFn
Type Parameters
  • T

TimesAsync(Int32, Func<Int32, Task>, CancellationToken)

View Source
Declaration
public static async Task TimesAsync(this int times, Func<int, Task> actionFn, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Int32times
System.Func<System.Int32,System.Threading.Tasks.Task>actionFn
System.Threading.CancellationTokentoken

TimesAsync<T>(Int32, Func<Int32, Task<T>>, CancellationToken)

View Source
Declaration
public static async Task<List<T>> TimesAsync<T>(this int times, Func<int, Task<T>> actionFn, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<<T>>>

Parameters
TypeName
System.Int32times
System.Func<System.Int32,System.Threading.Tasks.Task<<T>>>actionFn
System.Threading.CancellationTokentoken
Type Parameters
  • T

TimesAsync(Int32, Action<Int32>)

View Source
Declaration
public static List<IAsyncResult> TimesAsync(this int times, Action<int> actionFn)
Returns

System.Collections.Generic.List<System.IAsyncResult>

Parameters
TypeName
System.Int32times
System.Action<System.Int32>actionFn

TimesAsync(Int32, Action)

View Source
Declaration
public static List<IAsyncResult> TimesAsync(this int times, Action actionFn)
Returns

System.Collections.Generic.List<System.IAsyncResult>

Parameters
TypeName
System.Int32times
System.ActionactionFn