/// <summary> /// /// </summary> /// <param name="redmineManager"></param> /// <param name="parameters"></param> /// <typeparam name="T"></typeparam> /// <returns></returns> public static Task <int> CountAsync <T>(this RedmineManager redmineManager, NameValueCollection parameters) where T : class, new() { return(Task.Factory.StartNew(() => redmineManager.Count <T>(parameters), CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default)); }
public static Task <int> CountAsync <T>(this RedmineManager redmineManager, NameValueCollection parameters) where T : class, new() { return(Task.Factory.StartNew(() => redmineManager.Count <T>(parameters))); }
/// <summary> /// /// </summary> /// <param name="redmineManager"></param> /// <param name="include"></param> /// <typeparam name="T"></typeparam> /// <returns></returns> public static Task <int> CountAsync <T>(this RedmineManager redmineManager, params string[] include) where T : class, new() { return(Task.Factory.StartNew(() => redmineManager.Count <T>(include), CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default)); }
public static Task <int> CountAsync <T>(this RedmineManager redmineManager, params string[] include) where T : class, new() { return(Task.Factory.StartNew(() => redmineManager.Count <T>(include))); }