去除引用common.props

This commit is contained in:
2023-11-06 19:35:59 +08:00
parent 6a2154edd9
commit c6b8dfc861
810 changed files with 3910 additions and 6695 deletions

View File

@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tnb.Common.Extension
namespace Tnb.Common.Extension
{
public static class TaskEx
{
@@ -25,7 +19,7 @@ namespace Tnb.Common.Extension
return tcs.Task;
}
public static async Task<T> Retry<T>(Func<Task<T>> task, int retries,
public static async Task<T> Retry<T>(Func<Task<T>> task, int retries,
TimeSpan delay, CancellationToken cts = default) =>
await task().ContinueWith(async innerTask =>
{
@@ -40,7 +34,7 @@ namespace Tnb.Common.Extension
public static async Task Catch(this Task task, Func<Exception,Task> exceptionHandler)
public static async Task Catch(this Task task, Func<Exception, Task> exceptionHandler)
{
try
{