Moved implement and inject notation to partial class.

This commit is contained in:
Harrison Deng 2021-05-26 17:42:55 -05:00
parent 3c63ebc613
commit b311206ff1
2 changed files with 5 additions and 7 deletions

View File

@ -1,9 +1,4 @@
@using System.Reflection
@inject IHttpClientFactory HttpFactory
@implements IDisposable
<CascadingAuthenticationState>
<CascadingAuthenticationState>
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
<Found Context="routeData">
@if (modulesLoaded)

View File

@ -12,8 +12,11 @@ using MultiShop.Shop.Framework;
namespace MultiShop.Client
{
public partial class App
public partial class App : IDisposable
{
[Inject]
private IHttpClientFactory HttpFactory { get; set; }
[Inject]
private ILogger<App> Logger {get; set; }