Beispiel #1
0
 public override void InitializeComponent(ICore core)
 {
     this.Core           = core;
     this.MetaDataSource = new BassCdMetaDataSource(this.GetStrategy());
     this.MetaDataSource.InitializeComponent(this.Core);
     base.InitializeComponent(core);
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 public SearchManager(IMetaDataSource dataSource, IServiceProvider provider)
 {
     _dataSource = dataSource;
     _provider   = provider;
 }
 public MetaDataSourceWrapper(IMetaDataSource metaDataSource, IMetaDataDecorator metaDataDecorator)
 {
     this.MetaDataSource    = metaDataSource;
     this.MetaDataDecorator = metaDataDecorator;
 }
Beispiel #5
0
 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;
 }
Beispiel #7
0
 public LibraryService(IMetaDataSource metaDataSource, IDatabaseManager manager)
 {
     _metaDataSource = metaDataSource;
     _manager        = manager;
 }
Beispiel #8
0
 public FindController(IMetaDataSource dataSource)
 {
     _dataSource = dataSource;
 }