public override void RegisterRealTasks(PhysicalServer site)
        {
            var uriBuilder = new UriBuilder("msmq", site.Name) { Path = _queue };
            var address = new QueueAddress(uriBuilder.Uri);

            Task task;

            if (site.IsLocal)
                task = new LocalMsmqGrantAccessRightsTask(address, _group, _accessRights);
            else
                task = new RemoteMsmqGrantAccessRightsTask(site, address, _group, _accessRights);

            site.AddTask(task);
        }
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var uriBuilder = new UriBuilder("msmq", site.Name)
            {
                Path = _queue
            };
            var address = new QueueAddress(uriBuilder.Uri);

            Task task;

            if (site.IsLocal)
            {
                task = new LocalMsmqGrantAccessRightsTask(address, _group, _accessRights);
            }
            else
            {
                task = new RemoteMsmqGrantAccessRightsTask(site, address, _group, _accessRights);
            }

            site.AddTask(task);
        }