Esempio n. 1
0
 public IEnumerable <string> Get()
 {
     _logger.LogInformation($"Injected service types: '{Transient?.GetType().Name}', '{Scoped?.GetType().Name}', '{Imported?.GetType().Name}'");
     return(new[]
     {
         $"Transient services are different: {Transient != Scoped?.Transient}",
         $"Singletons are the same: {Transient?.Singleton == Scoped?.Singleton}",
         $"Exported service is successfully imported: {Imported != null}"
     });
 }