public Task <IExtensionScope> BeginExecuteAsync(ExecutionOptions options) { var context = _services.GetRequiredService <T>(); IExtensionScope scope = new ContextExtensionScope <T>(context); return(Task.FromResult(scope)); }
public Task <IExtensionScope> BeginExecuteAsync(ExecutionOptions options) { var scope = _serviceProvider.CreateScope(); IExtensionScope context = new ContextExtensionScope <IServiceScope>( scope); return(Task.FromResult(context)); }