/// <summary> /// Initializes a new instance of the <see cref="ConfigurationObjectProvider"/> class. /// </summary> /// <param name="typeFinder"><see cref="ITypeFinder"/> for finding performers.</param> /// <param name="getContainer"><see cref="GetContainer"/> for getting container.</param> public ConfigurationObjectProvider( ITypeFinder typeFinder, GetContainer getContainer) { _typeFinder = typeFinder; _getContainer = getContainer; PopulateConfigurationObjectTypes(); }
static Program() { // with autofac _importers = GetNonAbstractClassesOfTypes <CsvBankImporter>(GetContainer.GetMeContainer()).ToArray(); // could optimise this to only load one in real time when a folder with files is discovered but meh // with out auto fac // _importers = GetNonAbstractClassesOfTypes<CsvBankImporter>(new FileWrapper(), new CsvSplitterAndStripper()).ToArray(); }
/// <summary> /// Initializes a new instance of <see cref="DesiredPropertiesConfigurationObjectProvider"/> /// </summary> /// <param name="getContainer"><see cref="GetContainer"/> for getting access to the IoC container</param> /// <param name="parsers"><see cref="IConfigurationFileParsers"/> for parsing configuration</param> /// <param name="logger"><see cref="ILogger"/> for logging</param> public DesiredPropertiesConfigurationObjectProvider( GetContainer getContainer, IConfigurationFileParsers parsers, ILogger logger) { _parsers = parsers; _logger = logger; _getContainer = getContainer; }
/// <summary> /// Initializes a new instance of <see cref="Bindings"/> /// </summary> /// <param name="getContainer">The <see cref="GetContainer"/> for getting the <see cref="IContainer"/></param> /// <param name="logger"><see cref="ILogger"/> for logging</param> public Bindings(GetContainer getContainer, ILogger logger) { _getContainer = getContainer; _logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="Bindings"/> class. /// </summary> /// <param name="typeFinder"><see cref="ITypeFinder"/> to use for discovering rules.</param> /// <param name="getContainer"><see cref="GetContainer"/> for getting the <see cref="IContainer"/>.</param> public Bindings(ITypeFinder typeFinder, GetContainer getContainer) { _typeFinder = typeFinder; _getContainer = getContainer; }
/// <summary> /// Initializes a new instance of <see cref="Bindings"/> /// </summary> /// <param name="getContainer"></param> public Bindings(GetContainer getContainer) { _getContainer = getContainer; }
/// <summary> /// Initializes a new instance of the <see cref="Bindings"/> class. /// </summary> /// <param name="typeFinder"><see cref="ITypeFinder"/> for finding implementations of <see cref="ClientBase"/>.</param> /// <param name="getContainer"><see cref="GetContainer"/> for getting the <see cref="IContainer"/>.</param> public Bindings(ITypeFinder typeFinder, GetContainer getContainer) { _clientTypes = typeFinder.FindMultiple <ClientBase>(); _getContainer = getContainer; }