Ejemplo n.º 1
0
            public void Target(Action <UserPermissionsTarget> target)
            {
                var impl = new UserPermissionsTargetImpl();

                target(impl);

                _vhost = impl.VirtualHostName;
            }
Ejemplo n.º 2
0
            public void Targeting(Action <UserPermissionsTarget> target)
            {
                _targetingCalled = true;

                var impl = new UserPermissionsTargetImpl();

                target(impl);

                _vhost = impl.VirtualHostName;

                if (string.IsNullOrWhiteSpace(_vhost))
                {
                    _errors.Add(new ErrorImpl("The name of the virtual host is missing."));
                }
            }