/// <summary> /// Initializes a new instance of the <see cref="AbstractInterfaceBindingGenerator"/> class. /// </summary> /// <param name="bindableTypeSelector">The bindable type selector.</param> /// <param name="bindingCreator">Creator for multiple bindings for one type.</param> /// <param name="filter">The filter used to decide if a binding for the interface type is created.</param> protected AbstractInterfaceBindingGenerator( IBindableTypeSelector bindableTypeSelector, IBindingCreator bindingCreator, Func <Type, Type, bool> filter) { this.bindableTypeSelector = bindableTypeSelector; this.bindingCreator = bindingCreator; this.filter = filter; }
/// <summary> /// Initializes a new instance of the <see cref="AbstractInterfaceBindingGenerator"/> class. /// </summary> /// <param name="bindableTypeSelector">The bindable type selector.</param> /// <param name="bindingCreator">Creator for multiple bindings for one type.</param> /// <param name="filter">The filter used to decide if a binding for the interface type is created.</param> protected AbstractInterfaceBindingGenerator( IBindableTypeSelector bindableTypeSelector, IBindingCreator bindingCreator, Func<Type, Type, bool> filter) { this.bindableTypeSelector = bindableTypeSelector; this.bindingCreator = bindingCreator; this.filter = filter; }
/// <summary> /// Initializes a new instance of the <see cref="SelectorBindingGenerator"/> class. /// </summary> /// <param name="bindingCreator">The binding creator.</param> /// <param name="selector">The selection delegate.</param> /// <param name="bindableTypeSelector">The bindable type selector.</param> public SelectorBindingGenerator( IBindingCreator bindingCreator, ServiceSelector selector, IBindableTypeSelector bindableTypeSelector) { this.Selector = selector; this.bindingCreator = bindingCreator; this.bindableTypeSelector = bindableTypeSelector; }
/// <summary> /// Initializes a new instance of the <see cref="SelectorBindingGenerator"/> class. /// </summary> /// <param name="bindingCreator">The binding creator.</param> /// <param name="selector">The selection delegate.</param> /// <param name="bindableTypeSelector">The bindable type selector.</param> public SelectorBindingGenerator( IBindingCreator bindingCreator, ServiceSelector selector, IBindableTypeSelector bindableTypeSelector) { this.Selector = selector; this.bindingCreator = bindingCreator; this.bindableTypeSelector = bindableTypeSelector; }
/// <summary> /// Initializes a new instance of the <see cref="AllInterfacesBindingGenerator"/> class. /// </summary> /// <param name="bindableTypeSelector">The bindable type selector.</param> /// <param name="bindingCreator">Creator for multiple bindings for one type.</param> public AllInterfacesBindingGenerator(IBindableTypeSelector bindableTypeSelector, IBindingCreator bindingCreator) : base(bindableTypeSelector, bindingCreator, (ts, ti) => true) { }
/// <summary> /// Initializes a new instance of the <see cref="DefaultInterfacesBindingGenerator"/> class. /// </summary> /// <param name="bindableTypeSelector">The bindable type selector.</param> /// <param name="bindingCreator">Creator for multiple bindings for one type.</param> public DefaultInterfacesBindingGenerator(IBindableTypeSelector bindableTypeSelector, IBindingCreator bindingCreator) : base(bindableTypeSelector, bindingCreator, ImplementationTypeContainsinterfaceName) { }
/// <summary> /// Initializes a new instance of the <see cref="BindingGeneratorFactory"/> class. /// </summary> /// <param name="bindableTypeSelector">The bindable type selector.</param> public BindingGeneratorFactory(IBindableTypeSelector bindableTypeSelector) { this.bindableTypeSelector = bindableTypeSelector; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultInterfaceBindingGenerator"/> class. /// </summary> /// <param name="bindableTypeSelector">The bindable type selector.</param> /// <param name="bindingCreator">Creator for multiple bindins for one type.</param> public DefaultInterfaceBindingGenerator(IBindableTypeSelector bindableTypeSelector, IBindingCreator bindingCreator) : base(bindableTypeSelector, bindingCreator, HaveSameName) { }
/// <summary> /// Initializes a new instance of the <see cref="SingleInterfaceBindingGenerator"/> class. /// </summary> /// <param name="bindableTypeSelector">The bindable type selector.</param> public SingleInterfaceBindingGenerator(IBindableTypeSelector bindableTypeSelector) { this.bindableTypeSelector = bindableTypeSelector; }
/// <summary> /// Initializes a new instance of the <see cref="BindingGeneratorFactory"/> class. /// </summary> /// <param name="bindableTypeSelector">The bindable type selector.</param> public BindingGeneratorFactory(IBindableTypeSelector bindableTypeSelector) { this.bindableTypeSelector = bindableTypeSelector; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultInterfacesBindingGenerator"/> class. /// </summary> /// <param name="bindableTypeSelector">The bindable type selector.</param> /// <param name="bindingCreator">Creator for multiple bindings for one type.</param> public DefaultInterfacesBindingGenerator(IBindableTypeSelector bindableTypeSelector, IBindingCreator bindingCreator) : base(bindableTypeSelector, bindingCreator, ImplementationTypeContainsinterfaceName) { }
public TestBindingGeneratorFactory(IBindableTypeSelector bindableTypeSelector, IBindingCreator bindingCreator) : base(bindableTypeSelector) { this.bindingCreator = bindingCreator; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultInterfaceBindingGenerator"/> class. /// </summary> /// <param name="bindableTypeSelector">The bindable type selector.</param> /// <param name="bindingCreator">Creator for multiple bindings for one type.</param> public DefaultInterfaceBindingGenerator(IBindableTypeSelector bindableTypeSelector, IBindingCreator bindingCreator) : base(bindableTypeSelector, bindingCreator, HaveSameName) { }
/// <summary> /// Initializes a new instance of the <see cref="AllInterfacesBindingGenerator"/> class. /// </summary> /// <param name="bindableTypeSelector">The bindable type selector.</param> /// <param name="bindingCreator">Creator for multiple bindins for one type.</param> public AllInterfacesBindingGenerator(IBindableTypeSelector bindableTypeSelector, IBindingCreator bindingCreator) : base(bindableTypeSelector, bindingCreator, (ts, ti) => true) { }
/// <summary> /// Initializes a new instance of the <see cref="SingleInterfaceBindingGenerator"/> class. /// </summary> /// <param name="bindableTypeSelector">The bindable type selector.</param> public SingleInterfaceBindingGenerator(IBindableTypeSelector bindableTypeSelector) { this.bindableTypeSelector = bindableTypeSelector; }