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:
tekh 2025-10-29 16:08:43 +01:00
parent 50a056d110
commit fc297d92fa

View File

@ -38,6 +38,8 @@ namespace DigitalData.Core.Abstractions
{
return _lazyServiceProvider.Value.GetService(serviceType);
}
public IServiceScopeFactory ScopeFactory => this.GetRequiredService<IServiceScopeFactory>();
#endregion
#region Service Collection