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

                target(impl);

                _vhost = impl.VirtualHostName;
            }
Ejemplo n.º 2
0
            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."));
                }
            }