예제 #1
0
        /// <inheritdoc/>
        public IBindingBuilder Bind(Type type)
        {
            var binding        = new Binding(type, new Strategies.Null(), new Scopes.Transient());
            var bindingBuilder = new BindingBuilder(binding);

            _bindings.Add(bindingBuilder);
            return(bindingBuilder);
        }
예제 #2
0
        /// <inheritdoc/>
        public IBindingBuilder <T> Bind <T>()
        {
            var binding        = new Binding(typeof(T), new Strategies.Null(), new Scopes.Transient());
            var bindingBuilder = new BindingBuilder <T>(binding);

            _bindings.Add(bindingBuilder);
            return(bindingBuilder);
        }