Exemplo n.º 1
0
 public static Command GetCliCommand(this IServiceScope scope) => scope.GetService <Command>(CliCommandId);
Exemplo n.º 2
0
 public static WorkspaceCollection GetWorkspaces(this IServiceScope scope) => scope.GetService <WorkspaceCollection>();
Exemplo n.º 3
0
 public static Manager GetManager(this IServiceScope scope) => scope.GetService <Manager>();
Exemplo n.º 4
0
 public static CommandCollection GetCommands(this IServiceScope scope) => scope.GetService <CommandCollection>();
Exemplo n.º 5
0
 public static ExtensionCollection GetExtensions(this IServiceScope scope) => scope.GetService <ExtensionCollection>();
Exemplo n.º 6
0
 public static IRequestBus RequestBus(this IServiceScope source) => source.GetService <IRequestBus>();
Exemplo n.º 7
0
 public static IEnumerable <T> GetServices <T>(this IServiceScope serviceScope)
 => serviceScope.GetService <IEnumerable <T> >();
Exemplo n.º 8
0
 public static T GetService <T>(this IServiceScope serviceScope)
 => (T)serviceScope.GetService(typeof(T));