/// <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; }
public static void AddToList(this IRestore self) { RestoreManager.instance.Add(self); }