public Backup(IClean TypeOfClean) { Debug.Assert(TypeOfClean != null, "TypeOfClean is null!"); ContextClearPointsAlgo = new ContextClearPoints(TypeOfClean); ListOfRetoryPoints = new List <IRestorePoint>(); }
public TransactionsController( ILogger <TransactionsController> logger, IStatementParser statementParser, IClean transactionCleaner) { _statementParser = statementParser; _transactionCleaner = transactionCleaner; }
public Backup(List <FileInfo> NewListFiles, IClean TypeOfClean) { Debug.Assert(NewListFiles != null, "NewListFiles is null!"); Debug.Assert(TypeOfClean != null, "TypeOfClean is null!"); ContextClearPointsAlgo = new ContextClearPoints(TypeOfClean); ListOfRetoryPoints = new List <IRestorePoint>(); AddRestore(NewListFiles); }
private static void Jobs(IClean job) { if (job is IClean) { job.makeClean(); } if (job is IExtra) { ((IExtra)job).takeCare(); } }
public WordParseLogic(IClean <string> cleaner) { this.cleaner = cleaner; }
/// <summary> /// Assigning a reference to a Clean /// Clients of the ContextClearPoints must associate it with a suitable /// action that matches the way they expect /// the ContextClearPoints to perform its primary job. /// </summary> /// <param name="NewCleaner"></param> public ContextClearPoints(IClean NewCleaner) { Debug.Assert(NewCleaner != null, "NewCleaner is null!"); this.ContextCleaner = NewCleaner; }