at Microsoft.Extensions.DependencyInjection.AppServiceCollectionExtensions.AddAppHostedService(IServiceCollection services) in D:\Ysh\BB_YshNetCore\YshFramework\framework\Ysh\App\Extensions\AppServiceCollectionExtensions.cs:line 63
at Microsoft.Extensions.DependencyInjection.AppServiceCollectionExtensions.AddBaseService(IServiceCollection services, Boolean isHostService, Action`1 configure) in D:\Ysh\BB_YshNetCore\YshFramework\framework\Ysh\App\Extensions\AppServiceCollectionExtensions.cs:line 45
at Microsoft.Extensions.DependencyInjection.AppServiceCollectionExtensions.AddHostApp(IServiceCollection services, Action`1 configure) in D:\Ysh\BB_YshNetCore\YshFramework\framework\Ysh\App\Extensions\AppServiceCollectionExtensions.cs:line 92
at Microsoft.Extensions.Hosting.HostBuilderExtensions.<>c.<Inject>b__0_1(IServiceCollection services) in D:\Ysh\BB_YshNetCore\YshFramework\framework\Ysh\App\Extensions\HostBuilderExtensions.cs:line 40
at Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.<>c__DisplayClass7_0.<ConfigureServices>b__0(HostBuilderContext context, IServiceCollection collection)
at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at YshWebSocketDemo.Program.Main(String[] args) in D:\Ysh\BB_YshNetCore\YshFramework\samples\YshWebSocketDemo\Program.cs:line 20
-----------
### 代码或代码仓库
什么代码导致?
public class WsWorker<TS, TO> : BackgroundService { ... }
at Microsoft.Extensions.DependencyInjection.AppServiceCollectionExtensions.AddAppHostedService(IServiceCollection services) in D:\Ysh\BB_YshNetCore\YshFramework\framework\Ysh\App\Extensions\AppServiceCollectionExtensions.cs:line 63
at Microsoft.Extensions.DependencyInjection.AppServiceCollectionExtensions.AddBaseService(IServiceCollection services, Boolean isHostService, Action`1 configure) in D:\Ysh\BB_YshNetCore\YshFramework\framework\Ysh\App\Extensions\AppServiceCollectionExtensions.cs:line 45
at Microsoft.Extensions.DependencyInjection.AppServiceCollectionExtensions.AddHostApp(IServiceCollection services, Action`1 configure) in D:\Ysh\BB_YshNetCore\YshFramework\framework\Ysh\App\Extensions\AppServiceCollectionExtensions.cs:line 92
at Microsoft.Extensions.Hosting.HostBuilderExtensions.<>c.<Inject>b__0_1(IServiceCollection services) in D:\Ysh\BB_YshNetCore\YshFramework\framework\Ysh\App\Extensions\HostBuilderExtensions.cs:line 40
at Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.<>c__DisplayClass7_0.<ConfigureServices>b__0(HostBuilderContext context, IServiceCollection collection)
at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at YshWebSocketDemo.Program.Main(String[] args) in D:\Ysh\BB_YshNetCore\YshFramework\samples\YshWebSocketDemo\Program.cs:line 20
-----------
### 代码或代码仓库
什么代码导致?
public class WsWorker<TS, TO> : BackgroundService { ... }
at Microsoft.Extensions.DependencyInjection.AppServiceCollectionExtensions.AddAppHostedService(IServiceCollection services) in D:\Ysh\BB_YshNetCore\YshFramework\framework\Ysh\App\Extensions\AppServiceCollectionExtensions.cs:line 63
at Microsoft.Extensions.DependencyInjection.AppServiceCollectionExtensions.AddBaseService(IServiceCollection services, Boolean isHostService, Action`1 configure) in D:\Ysh\BB_YshNetCore\YshFramework\framework\Ysh\App\Extensions\AppServiceCollectionExtensions.cs:line 45
at Microsoft.Extensions.DependencyInjection.AppServiceCollectionExtensions.AddHostApp(IServiceCollection services, Action`1 configure) in D:\Ysh\BB_YshNetCore\YshFramework\framework\Ysh\App\Extensions\AppServiceCollectionExtensions.cs:line 92
at Microsoft.Extensions.Hosting.HostBuilderExtensions.<>c.<Inject>b__0_1(IServiceCollection services) in D:\Ysh\BB_YshNetCore\YshFramework\framework\Ysh\App\Extensions\HostBuilderExtensions.cs:line 40
at Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.<>c__DisplayClass7_0.<ConfigureServices>b__0(HostBuilderContext context, IServiceCollection collection)
at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at YshWebSocketDemo.Program.Main(String[] args) in D:\Ysh\BB_YshNetCore\YshFramework\samples\YshWebSocketDemo\Program.cs:line 20
-----------
### 代码或代码仓库
什么代码导致?
public class WsWorker<TS, TO> : BackgroundService { ... }
Unhandled exception. System.InvalidOperationException: Late bound operations cannot be performed on types or methods for which ContainsGenericParameters is true.
at System.Reflection.RuntimeMethodInfo.ThrowNoInvokeException()