2025-06-11 00:02:47.971 +08:00 [FTL] Application failed to start: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory': Unable to resolve service for type 'Serilog.ILogger' while attempting to activate 'CoreAgent.Infrastructure.Command.CommandStrategyFactory'.)
System.AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory': Unable to resolve service for type 'Serilog.ILogger' while attempting to activate 'CoreAgent.Infrastructure.Command.CommandStrategyFactory'.)
---> System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory': Unable to resolve service for type 'Serilog.ILogger' while attempting to activate 'CoreAgent.Infrastructure.Command.CommandStrategyFactory'.
---> System.InvalidOperationException: Unable to resolve service for type 'Serilog.ILogger' while attempting to activate 'CoreAgent.Infrastructure.Command.CommandStrategyFactory'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)
at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()
at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()
at Program.<Main>$(String[] args) in D:\HistoryCode\CoreAgent\src\CoreAgent.API\Program.cs:line 20
2025-06-11 00:02:48.108 +08:00 [FTL] Startup failure details: {"Message":"Some services are not able to be constructed (Error while validating the service descriptor \u0027ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory\u0027: Unable to resolve service for type \u0027Serilog.ILogger\u0027 while attempting to activate \u0027CoreAgent.Infrastructure.Command.CommandStrategyFactory\u0027.)","StackTrace":" at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection\u00601 serviceDescriptors, ServiceProviderOptions options)\r\n at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)\r\n at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()\r\n at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()\r\n at Program.\u003CMain\u003E$(String[] args) in D:\\HistoryCode\\CoreAgent\\src\\CoreAgent.API\\Program.cs:line 20","Source":"Microsoft.Extensions.DependencyInjection","InnerException":"Error while validating the service descriptor \u0027ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory\u0027: Unable to resolve service for type \u0027Serilog.ILogger\u0027 while attempting to activate \u0027CoreAgent.Infrastructure.Command.CommandStrategyFactory\u0027."}
2025-06-11 00:03:56.362 +08:00 [FTL] Application failed to start: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory': Unable to resolve service for type 'Serilog.ILogger' while attempting to activate 'CoreAgent.Infrastructure.Command.CommandStrategyFactory'.)
System.AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory': Unable to resolve service for type 'Serilog.ILogger' while attempting to activate 'CoreAgent.Infrastructure.Command.CommandStrategyFactory'.)
---> System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory': Unable to resolve service for type 'Serilog.ILogger' while attempting to activate 'CoreAgent.Infrastructure.Command.CommandStrategyFactory'.
---> System.InvalidOperationException: Unable to resolve service for type 'Serilog.ILogger' while attempting to activate 'CoreAgent.Infrastructure.Command.CommandStrategyFactory'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)
at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()
at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()
at Program.<Main>$(String[] args) in D:\HistoryCode\CoreAgent\src\CoreAgent.API\Program.cs:line 20
2025-06-11 00:03:56.424 +08:00 [FTL] Startup failure details: {"Message":"Some services are not able to be constructed (Error while validating the service descriptor \u0027ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory\u0027: Unable to resolve service for type \u0027Serilog.ILogger\u0027 while attempting to activate \u0027CoreAgent.Infrastructure.Command.CommandStrategyFactory\u0027.)","StackTrace":" at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection\u00601 serviceDescriptors, ServiceProviderOptions options)\r\n at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)\r\n at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()\r\n at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()\r\n at Program.\u003CMain\u003E$(String[] args) in D:\\HistoryCode\\CoreAgent\\src\\CoreAgent.API\\Program.cs:line 20","Source":"Microsoft.Extensions.DependencyInjection","InnerException":"Error while validating the service descriptor \u0027ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory\u0027: Unable to resolve service for type \u0027Serilog.ILogger\u0027 while attempting to activate \u0027CoreAgent.Infrastructure.Command.CommandStrategyFactory\u0027."}
2025-06-11 00:05:46.923 +08:00 [FTL] Application failed to start: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory': Unable to resolve service for type 'Serilog.ILogger' while attempting to activate 'CoreAgent.Infrastructure.Command.CommandStrategyFactory'.)
System.AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory': Unable to resolve service for type 'Serilog.ILogger' while attempting to activate 'CoreAgent.Infrastructure.Command.CommandStrategyFactory'.)
---> System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory': Unable to resolve service for type 'Serilog.ILogger' while attempting to activate 'CoreAgent.Infrastructure.Command.CommandStrategyFactory'.
---> System.InvalidOperationException: Unable to resolve service for type 'Serilog.ILogger' while attempting to activate 'CoreAgent.Infrastructure.Command.CommandStrategyFactory'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)
at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()
at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()
at Program.<Main>$(String[] args) in D:\HistoryCode\CoreAgent\src\CoreAgent.API\Program.cs:line 20
2025-06-11 00:05:46.967 +08:00 [FTL] Startup failure details: {"Message":"Some services are not able to be constructed (Error while validating the service descriptor \u0027ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory\u0027: Unable to resolve service for type \u0027Serilog.ILogger\u0027 while attempting to activate \u0027CoreAgent.Infrastructure.Command.CommandStrategyFactory\u0027.)","StackTrace":" at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection\u00601 serviceDescriptors, ServiceProviderOptions options)\r\n at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)\r\n at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()\r\n at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()\r\n at Program.\u003CMain\u003E$(String[] args) in D:\\HistoryCode\\CoreAgent\\src\\CoreAgent.API\\Program.cs:line 20","Source":"Microsoft.Extensions.DependencyInjection","InnerException":"Error while validating the service descriptor \u0027ServiceType: CoreAgent.Domain.Interfaces.ICommandStrategyFactory Lifetime: Singleton ImplementationType: CoreAgent.Infrastructure.Command.CommandStrategyFactory\u0027: Unable to resolve service for type \u0027Serilog.ILogger\u0027 while attempting to activate \u0027CoreAgent.Infrastructure.Command.CommandStrategyFactory\u0027."}
2025-06-11 00:53:38.128 +08:00 [INF] Handling request of type StartCellularNetworkCommand
2025-06-11 00:53:38.225 +08:00 [ERR] Error handling request of type StartCellularNetworkCommand
System.InvalidOperationException: No service for type 'MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean]' has been registered.
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at MediatR.Wrappers.RequestHandlerWrapperImpl`2.<>c__DisplayClass1_0.<Handle>g__Handler|0()
at MediatR.Wrappers.RequestHandlerWrapperImpl`2.Handle(IRequest`1 request, IServiceProvider serviceProvider, CancellationToken cancellationToken)
at MediatR.Mediator.Send[TResponse](IRequest`1 request, CancellationToken cancellationToken)
at CoreAgent.API.Controllers.BaseApiController.HandleRequest[TRequest,TResponse](TRequest request) in D:\HistoryCode\CoreAgent\src\CoreAgent.API\Controllers\BaseApiController.cs:line 28
2025-06-11 00:53:38.299 +08:00 [INF] Response for POST /api/v1/CellularNetwork/start: 500 - {"success":false,"message":"No service for type 'MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean]' has been registered.","data":false,"errors":[]}
2025-06-11 00:53:38.323 +08:00 [INF] Request completed: POST /api/v1/CellularNetwork/start in 329ms with status code 500
2025-06-11 00:55:20.433 +08:00 [FTL] Application failed to start: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.)
System.AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.)
---> System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.
---> System.InvalidOperationException: Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)
at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()
at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()
at Program.<Main>$(String[] args) in D:\HistoryCode\CoreAgent\src\CoreAgent.API\Program.cs:line 20
---> (Inner Exception #1) System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.
---> System.InvalidOperationException: Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)<---
---> (Inner Exception #2) System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.
---> System.InvalidOperationException: Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)<---
2025-06-11 00:55:20.556 +08:00 [FTL] Startup failure details: {"Message":"Some services are not able to be constructed (Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027.) (Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler\u0027.) (Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler\u0027.)","StackTrace":" at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection\u00601 serviceDescriptors, ServiceProviderOptions options)\r\n at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)\r\n at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()\r\n at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()\r\n at Program.\u003CMain\u003E$(String[] args) in D:\\HistoryCode\\CoreAgent\\src\\CoreAgent.API\\Program.cs:line 20","Source":"Microsoft.Extensions.DependencyInjection","InnerException":"Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027."}
2025-06-11 00:56:06.426 +08:00 [INF] Handling request of type StartCellularNetworkCommand
2025-06-11 00:56:06.507 +08:00 [ERR] Error handling request of type StartCellularNetworkCommand
System.InvalidOperationException: No service for type 'MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean]' has been registered.
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at MediatR.Wrappers.RequestHandlerWrapperImpl`2.<>c__DisplayClass1_0.<Handle>g__Handler|0()
at MediatR.Wrappers.RequestHandlerWrapperImpl`2.Handle(IRequest`1 request, IServiceProvider serviceProvider, CancellationToken cancellationToken)
at MediatR.Mediator.Send[TResponse](IRequest`1 request, CancellationToken cancellationToken)
at CoreAgent.API.Controllers.BaseApiController.HandleRequest[TRequest,TResponse](TRequest request) in D:\HistoryCode\CoreAgent\src\CoreAgent.API\Controllers\BaseApiController.cs:line 28
2025-06-11 00:56:06.555 +08:00 [INF] Response for POST /api/v1/CellularNetwork/start: 500 - {"success":false,"message":"No service for type 'MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean]' has been registered.","data":false,"errors":[]}
2025-06-11 00:56:06.573 +08:00 [INF] Request completed: POST /api/v1/CellularNetwork/start in 281ms with status code 500
2025-06-11 00:57:58.051 +08:00 [FTL] Application failed to start: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.)
System.AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.)
---> System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.
---> System.InvalidOperationException: Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)
at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()
at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()
at Program.<Main>$(String[] args) in D:\HistoryCode\CoreAgent\src\CoreAgent.API\Program.cs:line 20
---> (Inner Exception #1) System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.
---> System.InvalidOperationException: Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)<---
---> (Inner Exception #2) System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.
---> System.InvalidOperationException: Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)<---
2025-06-11 00:57:58.199 +08:00 [FTL] Startup failure details: {"Message":"Some services are not able to be constructed (Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027.) (Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler\u0027.) (Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler\u0027.)","StackTrace":" at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection\u00601 serviceDescriptors, ServiceProviderOptions options)\r\n at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)\r\n at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()\r\n at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()\r\n at Program.\u003CMain\u003E$(String[] args) in D:\\HistoryCode\\CoreAgent\\src\\CoreAgent.API\\Program.cs:line 20","Source":"Microsoft.Extensions.DependencyInjection","InnerException":"Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027."}
2025-06-11 00:59:14.293 +08:00 [FTL] Application failed to start: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.)
System.AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.)
---> System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.
---> System.InvalidOperationException: Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)
at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()
at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()
at Program.<Main>$(String[] args) in D:\HistoryCode\CoreAgent\src\CoreAgent.API\Program.cs:line 20
---> (Inner Exception #1) System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.
---> System.InvalidOperationException: Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)<---
---> (Inner Exception #2) System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.
---> System.InvalidOperationException: Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)<---
2025-06-11 00:59:14.363 +08:00 [FTL] Startup failure details: {"Message":"Some services are not able to be constructed (Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027.) (Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler\u0027.) (Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler\u0027.)","StackTrace":" at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection\u00601 serviceDescriptors, ServiceProviderOptions options)\r\n at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)\r\n at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()\r\n at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()\r\n at Program.\u003CMain\u003E$(String[] args) in D:\\HistoryCode\\CoreAgent\\src\\CoreAgent.API\\Program.cs:line 20","Source":"Microsoft.Extensions.DependencyInjection","InnerException":"Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027."}
2025-06-11 01:00:07.598 +08:00 [FTL] Application failed to start: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.)
System.AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.) (Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.)
---> System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.
---> System.InvalidOperationException: Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)
at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()
at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()
at Program.<Main>$(String[] args) in D:\HistoryCode\CoreAgent\src\CoreAgent.API\Program.cs:line 20
---> (Inner Exception #1) System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.
---> System.InvalidOperationException: Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)<---
---> (Inner Exception #2) System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: MediatR.IRequestHandler`2[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler': Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.
---> System.InvalidOperationException: Unable to resolve service for type 'CoreAgent.Domain.Interfaces.ICellularNetworkService' while attempting to activate 'CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options)<---
2025-06-11 01:00:07.709 +08:00 [FTL] Startup failure details: {"Message":"Some services are not able to be constructed (Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027.) (Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.StartCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.StartCellularNetworkCommandHandler\u0027.) (Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.StopCellularNetworkCommand,System.Boolean] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.StopCellularNetworkCommandHandler\u0027.)","StackTrace":" at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection\u00601 serviceDescriptors, ServiceProviderOptions options)\r\n at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)\r\n at Microsoft.Extensions.Hosting.HostApplicationBuilder.Build()\r\n at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()\r\n at Program.\u003CMain\u003E$(String[] args) in D:\\HistoryCode\\CoreAgent\\src\\CoreAgent.API\\Program.cs:line 20","Source":"Microsoft.Extensions.DependencyInjection","InnerException":"Error while validating the service descriptor \u0027ServiceType: MediatR.IRequestHandler\u00602[CoreAgent.Application.Commands.CellularNetwork.GetCellularNetworkStatusCommand,CoreAgent.Application.Commands.CellularNetwork.CellularNetworkStatus] Lifetime: Transient ImplementationType: CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027: Unable to resolve service for type \u0027CoreAgent.Domain.Interfaces.ICellularNetworkService\u0027 while attempting to activate \u0027CoreAgent.Application.Handlers.CellularNetwork.GetCellularNetworkStatusCommandHandler\u0027."}
at CoreAgent.Infrastructure.Services.CellularNetworkService.ExecuteCommandAsync(String command) in D:\HistoryCode\CoreAgent\src\CoreAgent.Infrastructure\Services\CellularNetworkService.cs:line 117
at CoreAgent.Infrastructure.Services.CellularNetworkService.StartAsync(String interfaceName, CellularNetworkConfig config) in D:\HistoryCode\CoreAgent\src\CoreAgent.Infrastructure\Services\CellularNetworkService.cs:line 28