Exemplo n.º 1
0
        public PowerShellAppDomain(PSMessageQueues messageQueues)
        {
            if (messageQueues == null)
            {
                throw new ArgumentNullException(nameof(messageQueues));
            }

            this.messageQueues = messageQueues;
        }
Exemplo n.º 2
0
        protected override void BeginProcessing()
        {
            if (ScriptText == null)
            {
                ThrowTerminatingError(new ErrorRecord(new PSArgumentNullException(nameof(ScriptText)), "Null Parameter", ErrorCategory.InvalidArgument, this));
            }

            messageQueues = new PSMessageQueues();
            if (Variables != null)
            {
                RemoveNonSerializableVariables();
            }
        }