Ejemplo n.º 1
0
 private void ResolveParameters()
 {
     this.m_output.WriteProgressSimple(Strings.DagTaskValidatingParameters);
     this.m_stampGroup        = StampGroupTaskHelper.StampGroupIdParameterToStampGroup(this.Identity, this.ConfigurationSession);
     this.m_stampGroupName    = this.m_stampGroup.Name;
     this.m_Server            = (Server)base.GetDataObject <Server>(this.Server, base.DataSession, null, new LocalizedString?(Strings.ErrorServerNotFound(this.Server.ToString())), new LocalizedString?(Strings.ErrorServerNotUnique(this.Server.ToString())));
     this.m_ServerName        = this.m_Server.Name;
     this.m_configurationOnly = this.ConfigurationOnly;
     DagTaskHelper.LogMachineIpAddresses(this.m_output, this.m_stampGroupName);
 }
Ejemplo n.º 2
0
 protected override void InternalValidate()
 {
     TaskLogger.LogEnter();
     this.LogCommandLineParameters();
     this.ResolveParameters();
     base.VerifyIsWithinScopes((IConfigurationSession)base.DataSession, this.m_Server, true, new DataAccessTask <StampGroup> .ADObjectOutOfScopeString(Strings.ErrorServerOutOfScope));
     StampGroupTaskHelper.CheckServerDoesNotBelongToDifferentStampGroup(new Task.TaskErrorLoggingDelegate(this.m_output.WriteError), base.DataSession, this.m_Server, this.m_stampGroupName);
     this.CheckServerStampGroupAdSettings();
     base.InternalValidate();
     this.StampGroupTrace("InternalValidate() done.");
     TaskLogger.LogExit();
 }
Ejemplo n.º 3
0
 private void ResolveParameters()
 {
     this.m_output.WriteProgressSimple(Strings.DagTaskValidatingParameters);
     this.m_stampGroup     = StampGroupTaskHelper.StampGroupIdParameterToStampGroup(this.Identity, this.ConfigurationSession);
     this.m_stampGroupName = this.m_stampGroup.Name;
     this.m_Server         = (Server)base.GetDataObject <Server>(this.Server, base.DataSession, null, new LocalizedString?(Strings.ErrorServerNotFound(this.Server.ToString())), new LocalizedString?(Strings.ErrorServerNotUnique(this.Server.ToString())));
     this.m_ServerName     = this.m_Server.Name;
     this.m_output.AppendLogMessage("Server: value passed in = {0}, server.Name = {1}", new object[]
     {
         this.Server,
         this.m_ServerName
     });
     if (this.m_Server.MajorVersion != Microsoft.Exchange.Data.Directory.SystemConfiguration.Server.CurrentExchangeMajorVersion)
     {
         this.m_output.WriteErrorSimple(new DagTaskErrorServerWrongVersion(this.m_Server.Name));
     }
 }