diff --git a/DigitalData.Core.Infrastructure/Static.cs b/DigitalData.Core.Infrastructure/Static.cs index 8641936..c5cc6ee 100644 --- a/DigitalData.Core.Infrastructure/Static.cs +++ b/DigitalData.Core.Infrastructure/Static.cs @@ -17,8 +17,8 @@ public class Static private readonly static Lazy LazyServices = new Lazy(() => new ServiceCollection()); public static IServiceCollection Services => LazyProvider.IsValueCreated - ? LazyServices.Value - : throw new InvalidOperationException("Service collection is not available after the service provider has been built."); + ? LazyServices.Value + : throw new InvalidOperationException("Services cannot be accessed after the Provider has been created."); private static readonly Lazy LazyProvider = new Lazy(Services.BuildServiceProvider);