Exemplo n.º 1
0
 public static IEnumerable <TService> GetServices <TService>(this IMyDependencyScope scope)
 {
     foreach (object item in scope.GetServices(typeof(TService)))
     {
         yield return((TService)item);
     }
 }
Exemplo n.º 2
0
 public static TService GetService <TService>(this IMyDependencyScope scope)
 {
     return((TService)scope.GetService(typeof(TService)));
 }