Exemplo n.º 1
0
        public void BindToConstant(Type service, object constValue, string name = null)
        {
            this.NotBeDisposed();
            Should.NotBeNull(service, "service");
            IConstantObjectPriorityWhenSyntax syntax = _injector.BindWithManualBuild(service).ToConstant(constValue);

            if (name != null)
            {
                syntax.NamedBinding(name);
            }
            syntax.Build();
        }