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 CopyRemoteOut(_server))
            {
                remote.GrantPermission(QueuePermission.Read, _address, _group);
            }

            return(result);
        }
        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 CopyRemoteOut(_server))
            {
                remote.GrantPermission(QueuePermission.ReadWrite, _address, _group);
            }

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

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

            using (var remote = new CopyRemoteOut(_server))
            {
                var vresult = remote.GrantPermission(QueuePermission.SetSensibleDefaults, _address, WellKnownRoles.Administrators);
                foreach (var r in vresult)
                {
                    result.Add(r);
                }
            }
        }
示例#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 CopyRemoteOut(_server))
            {
                //capture output
                var vresult = remote.GrantPermission(QueuePermission.Write, _address, _group);
                foreach (var r in vresult)
                {
                    result.Add(r);
                }
            }
        }
示例#5
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 CopyRemoteOut(_server))
            {
                //capture output
                var vresult = remote.GrantPermission(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 CopyRemoteOut(_server))
            {
                var vresult = remote.GrantPermission(QueuePermission.SetSensibleDefaults, _address, WellKnownRoles.Administrators);
                foreach (var r in vresult) result.Add(r);
            }
        }