mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 15:44:26 +01:00
Fix 2.0 warnings and errors
This commit is contained in:
@@ -16,8 +16,7 @@ public class DynamicReportsPlugin : BaseBTCPayServerPlugin
|
||||
{
|
||||
applicationBuilder.AddSingleton<DynamicReportService>();
|
||||
applicationBuilder.AddSingleton<IHostedService>(provider => provider.GetRequiredService<DynamicReportService>());
|
||||
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("DynamicReportsPlugin/Nav",
|
||||
"server-nav"));
|
||||
applicationBuilder.AddUIExtension("server-nav", "DynamicReportsPlugin/Nav");
|
||||
base.Execute(applicationBuilder);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user