public ActionResult <IEnumerable <InherenceServiceInfo> > GetInherenceServices()
 {
     return(Ok(_inherenceServicesManager.GetAll()?
               .Select(s =>
                       new InherenceServiceInfo
     {
         Name = s.Name,
         Alias = s.Alias,
         Description = s.Description,
         Target = s.Target
     })));
 }
Exemple #2
0
 protected override void InitializeInner(CancellationToken cancellationToken)
 {
     foreach (var inherenceService in _inherenceServicesManager.GetAll())
     {
         try
         {
             inherenceService.Initialize(cancellationToken);
         }
         catch (Exception ex)
         {
             _logger.Error($"Failed to initialize {inherenceService.GetType().FullName}", ex);
         }
     }
 }