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