private void InternalProcessServerMode() { ExTraceGlobals.CmdletsTracer.TraceFunction <string>((long)this.GetHashCode(), "UpdateDatabaseCopy: enter InternalProcessServerMode: {0}", this.m_server.Name); base.WriteVerbose(Strings.SeederServerLevelBeginCalled(this.m_server.Name)); try { using (SeederClient seederClient = SeederClient.Create(this.m_server, null, null)) { seederClient.BeginServerLevelSeed(this.DeleteExistingFiles, this.SafeDeleteExistingFiles, this.MaximumSeedsInParallel, false, this.ManualResume, this.m_seedDatabase, this.m_seedCiFiles, UpdateDatabaseCopy.UseDagDefaultOnOffToNullableBool(this.NetworkCompressionOverride), UpdateDatabaseCopy.UseDagDefaultOnOffToNullableBool(this.NetworkEncryptionOverride), SeederRpcFlags.None); } } catch (FullServerSeedInProgressException ex) { base.WriteWarning(ex.Message); } catch (SeederServerException exception) { base.WriteError(exception, ErrorCategory.InvalidOperation, this.m_server); } catch (SeederServerTransientException exception2) { base.WriteError(exception2, ErrorCategory.InvalidOperation, this.m_server); } ExTraceGlobals.CmdletsTracer.TraceFunction <string>((long)this.GetHashCode(), "UpdateDatabaseCopy: leave InternalProcessServerMode: {0}", this.m_server.Name); }
public TaskSeeder(SeedingTask seedingTask, Server server, Database database, Server sourceServer, Task.TaskVerboseLoggingDelegate writeVerbose, Task.TaskWarningLoggingDelegate writeWarning, Task.TaskErrorLoggingDelegate writeError, Task.TaskProgressLoggingDelegate writeProgress, Task.TaskShouldContinueDelegate shouldContinue, TaskSeeder.TaskIsStoppingDelegate stopping) { this.m_seedingTask = seedingTask; this.m_server = server; this.m_dbGuid = database.Guid; this.m_dbName = database.Name; this.m_isPublicDB = database.IsPublicFolderDatabase; this.m_sourceServer = sourceServer; this.m_writeVerbose = writeVerbose; this.m_writeWarning = writeWarning; this.m_writeError = writeError; this.m_writeProgress = writeProgress; this.m_shouldContinue = shouldContinue; this.m_stopping = stopping; this.m_taskName = this.GetTaskNameFromSeedingEnum(this.m_seedingTask); this.InitializeDefaultParameters(); this.m_seeder = SeederClient.Create(this.m_server, this.m_dbName, this.m_sourceServer); }