Exemple #1
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Get_GLDomainBase getGLDomainBase = new Get_GLDomainBase();

            getGLDomainBase.DatabaseServer = DatabaseServer;
            getGLDomainBase.DatabaseName   = DatabaseName;

            if (DomainId != Guid.Empty)
            {
                getGLDomainBase.DomainId = DomainId;
            }
            else if (!string.IsNullOrEmpty(DomainName))
            {
                getGLDomainBase.DomainName = DomainName;
            }

            getGLDomainBase.ExecuteCmdletBase(this);
        }
Exemple #2
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Get_GLDomainBase getGLDomainBase = new Get_GLDomainBase();

            if (!Loader.PopulateCmdletBase(this, ref getGLDomainBase))
            {
                return;
            }

            if (DomainId != Guid.Empty)
            {
                getGLDomainBase.DomainId = DomainId;
            }
            else if (!string.IsNullOrEmpty(DomainName))
            {
                getGLDomainBase.DomainName = DomainName;
            }

            getGLDomainBase.ExecuteCmdletBase(this);
        }