public override void Context() { base.Context(); RemoveLocalQueueIfExistsAndCreate(address.LocalName); task = new LocalMsmqGrantReadTask(address, user); }
public void Execute() { var t = new LocalMsmqGrantReadTask(_address, @"TEST\BrubakerM"); var r = t.Execute(); Assert.IsFalse(r.ContainsError(), "Errors occured during permission setting."); }
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); } }