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
已经部署好的系统,已经上传了两个dome里面的插件,重启了出现问题 #35
Labels
question
Further information is requested
Comments
这上面的 plugins 里的插件很久没维护了,建议用 插件里的框架引用现在推荐用下方方式,插件很多地方没更新,不过文档更新了 <FrameworkReference Include="Microsoft.AspNetCore.App">
<ExcludeAssets>runtime</ExcludeAssets>
</FrameworkReference> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
无论
PluginFinderV2 还是PluginFinderV1都出现了
protected virtual object ResolveUnregistered(Type type)
{
Exception innerException = null;
foreach (var constructor in type.GetConstructors())
{
try
{
//try to resolve constructor parameters
var parameters = constructor.GetParameters().Select(parameter =>
{
//var service = Resolve(parameter.ParameterType);
var t = type;
//var service = _serviceProvider.GetService(parameter.ParameterType);
using (var scope = _serviceScopeFactory.CreateScope())
{
var service = scope.ServiceProvider.GetService(parameter.ParameterType);
if (service == null)
throw new Exception("Unknown dependency");
return service;
}
});
}
这个里面的Unknown dependency 异常,上传的两个插件是HelloWorldPlugin和HexoPlugin
The text was updated successfully, but these errors were encountered: