public override DeploymentResult Execute()
        {
            var result = new DeploymentResult();

            Logging.Coarse("[msmq][remote] Setting permission for '{0}' on remote queue '{1}'.", _group, _address.ActualUri);

            using (var remote = new RemoteDropkickExecutionTask(_server))
            {
                remote.GrantMsmqPermission(QueuePermission.ReadWrite, _address, _group);
            }

            return result;
        }
        public override DeploymentResult Execute()
        {
            var result = new DeploymentResult();
            VerifyInAdministratorRole(result);

            using (var remote = new RemoteDropkickExecutionTask(_server))
            {
                //capture output
                var vresult = remote.CreateQueue(Address, _transactional);
            }

            return result;
        }
        public override DeploymentResult VerifyCanRun()
        {
            var result = new DeploymentResult();
            VerifyInAdministratorRole(result);

            using (var remote = new RemoteDropkickExecutionTask(_server))
            {
                //capture output
                var vresult = remote.VerifyQueueExists(Address);
            }

            return result;
        }
Beispiel #4
0
        void ProcessRemoteQueue(DeploymentResult result)
        {
            VerifyInAdministratorRole(result);
            Logging.Coarse("[msmq][remote] Setting permission for '{0}' on remote queue '{1}'.", _group, _address.ActualUri);

            using (var remote = new RemoteDropkickExecutionTask(_server))
            {
                //capture output
                var vresult = remote.GrantMsmqPermission(QueuePermission.Write, _address, _group);
                foreach (var r in vresult) result.Add(r);
            }

        }
        void ProcessRemoteQueue(DeploymentResult result)
        {
            VerifyInAdministratorRole(result);

            Logging.Coarse("[msmq][remote] Setting default permissions on remote queue '{0}'.", _address.ActualUri);

            using (var remote = new RemoteDropkickExecutionTask(_server))
            {
                var vresult = remote.GrantMsmqPermission(QueuePermission.SetSensibleDefaults, _address, WellKnownSecurityRoles.Administrators);
                foreach (var r in vresult) result.Add(r);
            }
        }