Пример #1
0
 // Token: 0x0600041A RID: 1050 RVA: 0x0001BE34 File Offset: 0x0001A034
 public TechnologyPollingFactory(ComposablePartCatalog catalog)
 {
     this.providers = TechnologyPollingFactory.InitializeMEF(catalog).ToList <ITechnologyPollingProvider>();
     if (this.providers.Any <ITechnologyPollingProvider>())
     {
         TechnologyPollingFactory.log.Info("Technology loader found technology polling providers: " + string.Join(",", (from t in this.providers
                                                                                                                        select t.GetType().FullName).ToArray <string>()));
         return;
     }
     TechnologyPollingFactory.log.Error("Technology loader found 0 technology polling providers");
 }
Пример #2
0
 public TechnologyPollingFactory(ComposablePartCatalog catalog)
 {
     this.providers = TechnologyPollingFactory.InitializeMEF(catalog).ToList <ITechnologyPollingProvider>();
     if (((IEnumerable <ITechnologyPollingProvider>) this.providers).Any <ITechnologyPollingProvider>())
     {
         TechnologyPollingFactory.log.Info((object)("Technology loader found technology polling providers: " + string.Join(",", ((IEnumerable <ITechnologyPollingProvider>) this.providers).Select <ITechnologyPollingProvider, string>((Func <ITechnologyPollingProvider, string>)(t => ((object)t).GetType().FullName)).ToArray <string>())));
     }
     else
     {
         TechnologyPollingFactory.log.Error((object)"Technology loader found 0 technology polling providers");
     }
 }
 private void Initialize(ComposablePartCatalog catalog)
 {
     this.techs = new TechnologyFactory(catalog);
     this.impls = new TechnologyPollingFactory(catalog);
 }