Esempio n. 1
0
 public override void Context()
 {
     base.Context();
     RemoveLocalQueueIfExistsAndCreate(address.LocalName);
     
     task = new LocalMsmqGrantReadTask(address, user);
 }
Esempio n. 2
0
        public void Execute()
        {
            var t = new LocalMsmqGrantReadTask(_address, @"TEST\BrubakerM");
            var r = t.Execute();

            Assert.IsFalse(r.ContainsError(), "Errors occured during permission setting.");
        }
Esempio n. 3
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var ub = new UriBuilder("msmq", site.Name) { Path = _queue };

            if (site.IsLocal)
            {
                var task = new LocalMsmqGrantReadTask(new QueueAddress(ub.Uri), _group);
                site.AddTask(task);
            }
            else
            {
                var task = new RemoteMsmqGrantReadTask(site, new QueueAddress(ub.Uri), _group);
                site.AddTask(task);
            }

        }