public override void InitializeComponent(ICore core) { this.Core = core; this.MetaDataSource = new BassCdMetaDataSource(this.GetStrategy()); this.MetaDataSource.InitializeComponent(this.Core); base.InitializeComponent(core); }
private async Task AddAdditional(IList <MetaDataItem> metaData, File file, IMetaDataSource metaDataSource) { try { metaData.AddRange(await metaDataSource.GetMetaData(file.Name).ConfigureAwait(false)); } catch (Exception e) { this.ErrorHandler(e); } }
public SearchManager(IMetaDataSource dataSource, IServiceProvider provider) { _dataSource = dataSource; _provider = provider; }
public MetaDataSourceWrapper(IMetaDataSource metaDataSource, IMetaDataDecorator metaDataDecorator) { this.MetaDataSource = metaDataSource; this.MetaDataDecorator = metaDataDecorator; }
private Task SetAdditional(IEnumerable <MetaDataItem> metaData, File file, IMetaDataSource metaDataSource) { return(metaDataSource.SetMetaData(file.Name, metaData, metaDataItem => true)); }
/// <summary> /// Constructs the object with prefilled parameters. It won't access the entity yet, because /// it's possible that the data-source wouldn't be ready yet. The access to the entity will /// only occur if it's really needed. /// </summary> /// <param name="name">Name of the PropertyAccess, e.g. pipelinesettings</param> /// <param name="objectId">EntityGuid of the Entity to get assigned Entities of</param> /// <param name="metaDataSource">DataSource that provides MetaData</param> public AssignedEntityValueProvider(string name, Guid objectId, IMetaDataSource metaDataSource) { Name = name; _objectToProvideSettingsTo = objectId; _metaDataSource = metaDataSource; }
public LibraryService(IMetaDataSource metaDataSource, IDatabaseManager manager) { _metaDataSource = metaDataSource; _manager = manager; }
public FindController(IMetaDataSource dataSource) { _dataSource = dataSource; }