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 <CascadingAuthenticationState>
@inject IHttpClientFactory HttpFactory
@implements IDisposable
<CascadingAuthenticationState>
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true"> <Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
<Found Context="routeData"> <Found Context="routeData">
@if (modulesLoaded) @if (modulesLoaded)

View File

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