|
@ -0,0 +1,308 @@ |
|
|
|
|
|
2025-06-11 00:02:46.491 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:02:46.529 +08:00 [INF] Application starting... |
|
|
|
|
|
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.281 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:03:56.316 +08:00 [INF] Application starting... |
|
|
|
|
|
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.844 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:05:46.881 +08:00 [INF] Application starting... |
|
|
|
|
|
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:06:35.367 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:06:35.401 +08:00 [INF] Application starting... |
|
|
|
|
|
2025-06-11 00:06:35.925 +08:00 [INF] Application startup completed |
|
|
|
|
|
2025-06-11 00:18:39.803 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:18:39.853 +08:00 [INF] Application starting... |
|
|
|
|
|
2025-06-11 00:18:42.251 +08:00 [INF] Application startup completed |
|
|
|
|
|
2025-06-11 00:18:56.881 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:18:56.926 +08:00 [INF] Application starting... |
|
|
|
|
|
2025-06-11 00:18:57.374 +08:00 [INF] Application startup completed |
|
|
|
|
|
2025-06-11 00:19:06.139 +08:00 [INF] Request started: GET /api/v1/WeatherForecast |
|
|
|
|
|
2025-06-11 00:19:06.199 +08:00 [INF] Weather forecast requested |
|
|
|
|
|
2025-06-11 00:19:06.227 +08:00 [INF] Response for GET /api/v1/WeatherForecast: 200 - [{"date":"2025-06-12","temperatureC":39,"summary":"Cool","temperatureF":102},{"date":"2025-06-13","temperatureC":16,"summary":"Cool","temperatureF":60},{"date":"2025-06-14","temperatureC":4,"summary":"Balmy","temperatureF":39},{"date":"2025-06-15","temperatureC":11,"summary":"Freezing","temperatureF":51},{"date":"2025-06-16","temperatureC":-1,"summary":"Chilly","temperatureF":31}] |
|
|
|
|
|
2025-06-11 00:19:06.245 +08:00 [INF] Request completed: GET /api/v1/WeatherForecast in 111ms with status code 200 |
|
|
|
|
|
2025-06-11 00:28:28.605 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:28:28.640 +08:00 [INF] Application starting... |
|
|
|
|
|
2025-06-11 00:28:28.892 +08:00 [INF] Application startup completed |
|
|
|
|
|
2025-06-11 00:28:29.786 +08:00 [INF] Application is stopping... |
|
|
|
|
|
2025-06-11 00:28:29.800 +08:00 [INF] Application has stopped. |
|
|
|
|
|
2025-06-11 00:28:44.067 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:28:44.118 +08:00 [INF] Application starting... |
|
|
|
|
|
2025-06-11 00:28:44.579 +08:00 [INF] Application startup completed |
|
|
|
|
|
2025-06-11 00:53:27.958 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:53:28.002 +08:00 [INF] Application starting... |
|
|
|
|
|
2025-06-11 00:53:30.633 +08:00 [INF] Application startup completed |
|
|
|
|
|
2025-06-11 00:53:37.999 +08:00 [INF] Request started: POST /api/v1/CellularNetwork/start |
|
|
|
|
|
2025-06-11 00:53:38.120 +08:00 [INF] 收到启动蜂窝网络请求: string |
|
|
|
|
|
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:18.744 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:55:18.784 +08:00 [INF] Application starting... |
|
|
|
|
|
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:55:57.494 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:55:57.538 +08:00 [INF] Application starting... |
|
|
|
|
|
2025-06-11 00:55:59.958 +08:00 [INF] Application startup completed |
|
|
|
|
|
2025-06-11 00:56:06.299 +08:00 [INF] Request started: POST /api/v1/CellularNetwork/start |
|
|
|
|
|
2025-06-11 00:56:06.419 +08:00 [INF] 收到启动蜂窝网络请求: string |
|
|
|
|
|
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:56.184 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:57:56.241 +08:00 [INF] Application starting... |
|
|
|
|
|
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.196 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 00:59:14.238 +08:00 [INF] Application starting... |
|
|
|
|
|
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:05.938 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 01:00:05.995 +08:00 [INF] Application starting... |
|
|
|
|
|
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."} |
|
|
|
|
|
2025-06-11 01:00:38.549 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 01:00:38.593 +08:00 [INF] Application starting... |
|
|
|
|
|
2025-06-11 01:00:39.229 +08:00 [INF] Application startup completed |
|
|
|
|
|
2025-06-11 01:00:55.414 +08:00 [INF] Application is stopping... |
|
|
|
|
|
2025-06-11 01:00:55.429 +08:00 [INF] Application has stopped. |
|
|
|
|
|
2025-06-11 01:01:08.260 +08:00 [INF] Logger initialized successfully |
|
|
|
|
|
2025-06-11 01:01:08.310 +08:00 [INF] Application starting... |
|
|
|
|
|
2025-06-11 01:01:08.769 +08:00 [INF] Application startup completed |
|
|
|
|
|
2025-06-11 01:01:13.658 +08:00 [INF] Request started: POST /api/v1/CellularNetwork/start |
|
|
|
|
|
2025-06-11 01:01:13.801 +08:00 [INF] 收到启动蜂窝网络请求: string |
|
|
|
|
|
2025-06-11 01:01:13.807 +08:00 [INF] Handling request of type StartCellularNetworkCommand |
|
|
|
|
|
2025-06-11 01:01:13.820 +08:00 [INF] 正在启动蜂窝网络接口: string |
|
|
|
|
|
2025-06-11 01:01:13.827 +08:00 [INF] 正在启动蜂窝网络接口: string |
|
|
|
|
|
2025-06-11 01:01:15.013 +08:00 [ERR] 启动蜂窝网络接口失败: string |
|
|
|
|
|
System.Exception: 命令执行失败: |
|
|
|
|
|
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 |
|
|
|
|
|
2025-06-11 01:01:15.049 +08:00 [WRN] 蜂窝网络接口 string 启动失败 |
|
|
|
|
|
2025-06-11 01:01:15.073 +08:00 [INF] Response for POST /api/v1/CellularNetwork/start: 200 - {"success":true,"message":null,"data":false,"errors":[]} |
|
|
|
|
|
2025-06-11 01:01:15.088 +08:00 [INF] Request completed: POST /api/v1/CellularNetwork/start in 1436ms with status code 200 |