Refactor: Remove IServiceCollection dependency

Removed the IServiceCollection dependency and related code from MessagingServiceApplicationConfiguration.cs. This includes the private property `Services`, the boolean field `_luckyPennySoftLicenseKeyAdded`, and the constructor that initialized `Services`. The `EnsureConfigured` method remains, but its functionality may be impacted by these changes.
This commit is contained in:
2026-11-04 11:37:57 +01:00
parent 8cfa803cd3
commit 35094529bb

View File

@@ -1,20 +1,12 @@
#if NET
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace DigitalData.MessagingService.Application.DependencyInjection;
public partial class MessagingServiceApplicationConfiguration
{
private IServiceCollection Services { get; }
private bool _luckyPennySoftLicenseKeyAdded = false;
internal MessagingServiceApplicationConfiguration(IServiceCollection services)
{
Services = services;
}
internal void EnsureConfigured()
{
if (!_luckyPennySoftLicenseKeyAdded)