Exemplo n.º 1
0
 public static ValueTask ExecuteAsync <TService>(
     this GlobalServiceAccessor accessor,
     Func <TService, ValueTask> action,
     bool ignoreNotPresent = false) =>
 InternalGlobalService.ExecuteAsync(action, ignoreNotPresent);
Exemplo n.º 2
0
 public static ValueTask <TResult> ExecuteAsync <TService, TResult>(
     this GlobalServiceAccessor accessor,
     Func <TService, ValueTask <TResult> > action) =>
 InternalGlobalService.ExecuteAsync(action);
Exemplo n.º 3
0
 public static ValueTask <TResult> ExecuteAsync <TService, TResult>(
     Func <TService, ValueTask <TResult> > action) =>
 InternalGlobalService.ExecuteAsync <TService, TResult>(action);
Exemplo n.º 4
0
 public static void Unregister(object instance) =>
 InternalGlobalService.Unregister(instance);
Exemplo n.º 5
0
 public static void Register(
     object instance, RegisteringValidations validation = RegisteringValidations.Strict) =>
 InternalGlobalService.Register(instance, validation);
Exemplo n.º 6
0
 public static TResult ExecuteSync <TService, TResult>(
     this GlobalServiceAccessor accessor,
     Func <TService, TResult> action) =>
 InternalGlobalService.ExecuteSync(action);
Exemplo n.º 7
0
 public static void ExecuteSync <TService>(
     this GlobalServiceAccessor accessor,
     Action <TService> action,
     bool ignoreNotPresent = false) =>
 InternalGlobalService.ExecuteSync(action, ignoreNotPresent);