示例#1
0
        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;
 }
示例#3
0
        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);
        }
示例#4
0
        private static void Jobs(IClean job)
        {
            if (job is IClean)
            {
                job.makeClean();
            }

            if (job is IExtra)
            {
                ((IExtra)job).takeCare();
            }
        }
示例#5
0
 public WordParseLogic(IClean <string> cleaner)
 {
     this.cleaner = cleaner;
 }
示例#6
0
 /// <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;
 }