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(); }