48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Components;
|
|
using System.Net.Http;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Components.Authorization;
|
|
using Microsoft.AspNetCore.Components.Forms;
|
|
using Microsoft.AspNetCore.Components.Routing;
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
using Microsoft.AspNetCore.Components.Web.Virtualization;
|
|
using Microsoft.JSInterop;
|
|
using MP_TAB_SERV;
|
|
using MP_TAB_SERV.Shared;
|
|
using MP_TAB_SERV.Components;
|
|
using MP.Data;
|
|
using MP.Data.DatabaseModels;
|
|
using MP.Data.DTO;
|
|
using MP.Data.Services;
|
|
using Newtonsoft.Json;
|
|
using NLog;
|
|
using EgwCoreLib.Razor;
|
|
using Blazored.LocalStorage;
|
|
|
|
namespace MP_TAB_SERV.Pages
|
|
{
|
|
public partial class Logout
|
|
{
|
|
[Inject]
|
|
protected ILocalStorageService localStorage { get; set; } = null!;
|
|
[Inject]
|
|
protected TabDataService TDService { get; set; } = null!;
|
|
[Inject]
|
|
protected MessageService MsgServ { get; set; } = null!;
|
|
[Inject]
|
|
protected NavigationManager NavMan { get; set; } = null!;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await Task.Delay(1);
|
|
await localStorage.SetItemAsync("currTkn", "");
|
|
await TDService.OperatoreDeleteRedis(MsgServ.MatrOpr);
|
|
MsgServ.RigaOper = null;
|
|
NavMan.NavigateTo("reg-new-device", true);
|
|
}
|
|
}
|
|
} |