public void Target(Action <BindingTarget> target) { var impl = new BindingTargetImpl(); target(impl); _vhost = impl.VirtualHostName; }
public void Targeting(Action <BindingTarget> target) { _targetCalled = true; var impl = new BindingTargetImpl(); target(impl); _vhost = impl.VirtualHostName; if (string.IsNullOrWhiteSpace(_vhost)) { _errors.Add(new ErrorImpl("The name of the virtual host is missing.")); } }