public void Target(Action <UserPermissionsTarget> target) { var impl = new UserPermissionsTargetImpl(); target(impl); _vhost = impl.VirtualHostName; }
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.")); } }