• 大小: 0.02M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-26
  • 语言: C#
  • 标签: C#  重试  Retry  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace RetrySolution.Core
{
    public class RetryProvider : IDisposable
    {
        private int _waitTimeout = 0;
        private int _retryCount = 1;
        private static readonly object _asyncLock = new object();
        private BackgroundWorker _backgroupThread = null;

        public delegate void CompletedEventHandler(bool success);
        public event CompletedEventHandler Completed;
        public delegate void CancelledEventHandler();
        public event CancelledEventHandler Cancelled;
        public delegate void PerRetryBeginEventHandler(int retryIndex);
        public event PerRetryBeginEventHandler PerRetryBegin;
        public delegate void PerRetryEndEventHandler(int retryIndex);
        public event PerRetryEndEventHandler PerRetryEnd;
        public delegate void PerR

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2458  2013-06-20 22:40  RetrySolution\RetrySolution.Core\ClassDiagram1.cd

     文件       1448  2013-06-19 21:21  RetrySolution\RetrySolution.Core\Properties\AssemblyInfo.cs

     文件       7410  2013-06-20 23:25  RetrySolution\RetrySolution.Core\RetryProvider.cs

     文件       2503  2013-06-20 22:40  RetrySolution\RetrySolution.Core\RetrySolution.Core.csproj

     文件       1455  2013-06-20 23:26  RetrySolution\RetrySolution.sln

    ..A..H.     58368  2013-06-20 23:26  RetrySolution\RetrySolution.v11.suo

     文件        187  2013-06-19 22:13  RetrySolution\RetrySolutionWinApp\App.config

     文件       5901  2013-06-20 22:40  RetrySolution\RetrySolutionWinApp\MainForm.cs

     文件       9423  2013-06-20 21:48  RetrySolution\RetrySolutionWinApp\MainForm.Designer.cs

     文件       5817  2013-06-20 21:48  RetrySolution\RetrySolutionWinApp\MainForm.resx

     文件        545  2013-06-19 22:43  RetrySolution\RetrySolutionWinApp\Program.cs

     文件       1450  2013-06-19 22:13  RetrySolution\RetrySolutionWinApp\Properties\AssemblyInfo.cs

     文件       2868  2013-06-19 22:13  RetrySolution\RetrySolutionWinApp\Properties\Resources.Designer.cs

     文件       5612  2013-06-19 22:13  RetrySolution\RetrySolutionWinApp\Properties\Resources.resx

     文件       1106  2013-06-19 22:13  RetrySolution\RetrySolutionWinApp\Properties\Settings.Designer.cs

     文件        249  2013-06-19 22:13  RetrySolution\RetrySolutionWinApp\Properties\Settings.settings

     文件       4074  2013-06-19 22:52  RetrySolution\RetrySolutionWinApp\RetrySolutionWinApp.csproj

     目录          0  2013-06-19 21:21  RetrySolution\RetrySolution.Core\Properties

     目录          0  2013-06-19 22:13  RetrySolution\RetrySolutionWinApp\Properties

     目录          0  2013-06-20 23:26  RetrySolution\RetrySolution.Core

     目录          0  2013-06-20 23:26  RetrySolution\RetrySolutionWinApp

     目录          0  2013-06-20 23:26  RetrySolution

----------- ---------  ---------- -----  ----

               110874                    22


评论

共有 条评论