Add identity first iteration
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
@page "/test/export"
|
||||
|
||||
@using Microsoft.AspNetCore.Authorization
|
||||
@using Hcs.Broker
|
||||
@using Hcs.Broker.Logger
|
||||
@using Hcs.Broker.MessageCapturer
|
||||
@ -8,6 +9,10 @@
|
||||
@using Hcs.WebApp.Config
|
||||
@using Hcs.WebApp.Utils
|
||||
|
||||
@implements IDisposable
|
||||
|
||||
@attribute [Authorize]
|
||||
|
||||
@inject NavigationManager NavigationManager
|
||||
@inject IConfiguration Configuration
|
||||
|
||||
@ -82,6 +87,14 @@
|
||||
client.SetSigningCertificate(brokerConfig.CertificateSerialNumber);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (messageCapturer != null)
|
||||
{
|
||||
messageCapturer.OnFileWritten -= OnFileWritten;
|
||||
}
|
||||
}
|
||||
|
||||
void OnLog(string log)
|
||||
{
|
||||
console.Log(log);
|
||||
|
||||
Reference in New Issue
Block a user