Esempio n. 1
0
 /// <summary>
 /// 添加需要还原的restore
 /// 不会重复添加
 /// </summary>
 /// <param name="restore"></param>
 public void Add(IRestore restore)
 {
     if (_restoreList.Contains(restore))
     {
         return;
     }
     _restoreList.Add(restore);
 }
 public Worker(IConfiguration configuration, IOptionsMonitor <Config> config,
               IRestore restore, Context context)
 {
     _configuration = configuration;
     _config        = config?.CurrentValue;
     _restore       = restore;
     _context       = context;
 }
Esempio n. 3
0
 public static void AddToList(this IRestore self)
 {
     RestoreManager.instance.Add(self);
 }