public PatcherOperationScope(DocumentDatabase database, DocumentsOperationContext context, bool debugMode = false) { _database = database; _context = context; DebugMode = debugMode; if (DebugMode) { DebugActions = new PatchDebugActions(); } }
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(); }