feat(factory): add IServiceScopeFactory property to Factory class
Added ScopeFactory property to the Factory class to expose IServiceScopeFactory through GetRequiredService<IServiceScopeFactory>(). This enables scoped service creation from the factory instance.
This commit is contained in:
parent
50a056d110
commit
fc297d92fa
@ -38,6 +38,8 @@ namespace DigitalData.Core.Abstractions
|
||||
{
|
||||
return _lazyServiceProvider.Value.GetService(serviceType);
|
||||
}
|
||||
|
||||
public IServiceScopeFactory ScopeFactory => this.GetRequiredService<IServiceScopeFactory>();
|
||||
#endregion
|
||||
|
||||
#region Service Collection
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user