예제 #1
0
 public PatcherOperationScope(DocumentDatabase database, DocumentsOperationContext context, bool debugMode = false)
 {
     _database = database;
     _context  = context;
     DebugMode = debugMode;
     if (DebugMode)
     {
         DebugActions = new PatchDebugActions();
     }
 }
예제 #2
0
 private void Reset()
 {
     if (DebugMode)
     {
         if (DebugOutput == null)
         {
             DebugOutput = new List <string>();
         }
         if (DebugActions == null)
         {
             DebugActions = new PatchDebugActions();
         }
     }
     Includes?.Clear();
     PutOrDeleteCalled = false;
     ScriptEngine.ResetStatementsCount();
     ScriptEngine.ResetTimeoutTicks();
 }