...
This commit is contained in:
@@ -15,6 +15,8 @@
|
|||||||
@inject ILocalStorageService localStorageService;
|
@inject ILocalStorageService localStorageService;
|
||||||
@inject HttpClient _Http;
|
@inject HttpClient _Http;
|
||||||
@inject NavigationManager nav
|
@inject NavigationManager nav
|
||||||
|
@implements IAsyncDisposable
|
||||||
|
|
||||||
<ConfirmDialog @ref="dialog" />
|
<ConfirmDialog @ref="dialog" />
|
||||||
<Modal @ref="modal" IsVerticallyCentered="true" IsScrollable="true" />
|
<Modal @ref="modal" IsVerticallyCentered="true" IsScrollable="true" />
|
||||||
<PageTitle>گفتمان</PageTitle>
|
<PageTitle>گفتمان</PageTitle>
|
||||||
@@ -782,7 +784,14 @@
|
|||||||
SelectedImagePreview = null;
|
SelectedImagePreview = null;
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
public async ValueTask DisposeAsync()
|
||||||
|
{
|
||||||
|
if (hubConnection is not null)
|
||||||
|
{
|
||||||
|
await hubConnection.StopAsync();
|
||||||
|
await hubConnection.DisposeAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
{
|
{
|
||||||
<PageTitle>گفتگو با @CompanyInfo?.FullName</PageTitle>
|
<PageTitle>گفتگو با @CompanyInfo?.FullName</PageTitle>
|
||||||
}
|
}
|
||||||
|
@implements IAsyncDisposable
|
||||||
@inject NavigationManager NavigationManager
|
@inject NavigationManager NavigationManager
|
||||||
@inject ChatService ChatService
|
@inject ChatService ChatService
|
||||||
@inject ILocalStorageService localStorageService;
|
@inject ILocalStorageService localStorageService;
|
||||||
@@ -727,6 +727,14 @@
|
|||||||
}
|
}
|
||||||
return $"image_{DateTimeOffset.Now.ToUnixTimeSeconds()}{ext}";
|
return $"image_{DateTimeOffset.Now.ToUnixTimeSeconds()}{ext}";
|
||||||
}
|
}
|
||||||
|
public async ValueTask DisposeAsync()
|
||||||
|
{
|
||||||
|
if (hubConnection is not null)
|
||||||
|
{
|
||||||
|
await hubConnection.StopAsync();
|
||||||
|
await hubConnection.DisposeAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
<style>
|
<style>
|
||||||
.chat-bubble {
|
.chat-bubble {
|
||||||
|
Reference in New Issue
Block a user