optimization update, web scheduler test-integration
This commit is contained in:
parent
3c9ccaafeb
commit
1591618c2c
103 changed files with 4826 additions and 1502 deletions
|
|
@ -13,7 +13,7 @@ using static Insight.Web.Constants.Events.Chat;
|
|||
|
||||
namespace Insight.Web.Components.Dialogs;
|
||||
|
||||
public partial class ChatDialog
|
||||
public partial class ChatDialog : IDisposable
|
||||
{
|
||||
[Inject] private Bus Bus { get; init; } = default!;
|
||||
[Inject] private ChatService ChatService { get; init; } = default!;
|
||||
|
|
@ -45,10 +45,10 @@ public partial class ChatDialog
|
|||
|
||||
private enum Content { Contacts, Chat }
|
||||
private Content _content = Content.Contacts;
|
||||
|
||||
private ChatUser? _currentUser;
|
||||
private ChatSession? _currentSession;
|
||||
private string? _currentMessage;
|
||||
private bool _disposed;
|
||||
|
||||
private readonly List<IDisposable> _subscriptions = new();
|
||||
|
||||
|
|
@ -194,4 +194,25 @@ public partial class ChatDialog
|
|||
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
private void Dispose(bool disposing)
|
||||
{
|
||||
if (_disposed is false) return;
|
||||
if (disposing is false) return;
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
_disposed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue