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:
@@ -1,20 +1,12 @@
|
|||||||
#if NET
|
#if NET
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
|
|
||||||
namespace DigitalData.MessagingService.Application.DependencyInjection;
|
namespace DigitalData.MessagingService.Application.DependencyInjection;
|
||||||
|
|
||||||
public partial class MessagingServiceApplicationConfiguration
|
public partial class MessagingServiceApplicationConfiguration
|
||||||
{
|
{
|
||||||
private IServiceCollection Services { get; }
|
|
||||||
|
|
||||||
private bool _luckyPennySoftLicenseKeyAdded = false;
|
private bool _luckyPennySoftLicenseKeyAdded = false;
|
||||||
|
|
||||||
internal MessagingServiceApplicationConfiguration(IServiceCollection services)
|
|
||||||
{
|
|
||||||
Services = services;
|
|
||||||
}
|
|
||||||
|
|
||||||
internal void EnsureConfigured()
|
internal void EnsureConfigured()
|
||||||
{
|
{
|
||||||
if (!_luckyPennySoftLicenseKeyAdded)
|
if (!_luckyPennySoftLicenseKeyAdded)
|
||||||
|
|||||||
Reference in New Issue
Block a user