-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何安装\卸载插件中的 BackgroundService #5
Comments
这个示例现在暂时不支持HostService, 只支持简单的界面组件。 |
MethodInfo method = typeof(ServiceCollectionHostedServiceExtensions).GetMethod("AddHostedService").MakeGenericMethod(t); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
比如在项目 DemoPlugin1 中添加一个自定义的 BackgroundService,目的是插件加载后就一秒输出一次当前时间,插件卸载时停止输出。
正常的开发方式,需要在 ConfigureServices() 方法中依赖注入
在插件中配置的 HostedService 要怎么才能运行\停止?
The text was updated successfully, but these errors were encountered: