From fc297d92fa131f6534d3995eb6cd67c26a2b86d4 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 29 Oct 2025 16:08:43 +0100 Subject: [PATCH] feat(factory): add IServiceScopeFactory property to Factory class Added ScopeFactory property to the Factory class to expose IServiceScopeFactory through GetRequiredService(). This enables scoped service creation from the factory instance. --- DigitalData.Core.Abstractions/Factory.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DigitalData.Core.Abstractions/Factory.cs b/DigitalData.Core.Abstractions/Factory.cs index f9d2921..83bef19 100644 --- a/DigitalData.Core.Abstractions/Factory.cs +++ b/DigitalData.Core.Abstractions/Factory.cs @@ -38,6 +38,8 @@ namespace DigitalData.Core.Abstractions { return _lazyServiceProvider.Value.GetService(serviceType); } + + public IServiceScopeFactory ScopeFactory => this.GetRequiredService(); #endregion #region Service Collection