示例#1
0
 public ITaskWrap <T> Awaitable()
 {
     try {
         return(ReadDA(ref _realHolder).Awaitable());
     } catch (Exception exception) {
         return(TaskWrap <T> .Wrap(task : Task.FromException <T>(exception)));
     }
 }
 public TaskWrap <TComponent> CreateAsync(IServiceProvider serviceProvider, IDependencySupport dependencies, IContext ctx = default)
 => TaskWrap <TComponent> .Wrap(func : () => Create(serviceProvider: serviceProvider, dependencies: dependencies, ctx: ctx));