mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
IAsyncDisposable Change
- removed own implementation, using BCL library version now
This commit is contained in:
parent
7688e2b2ae
commit
db30824957
12 changed files with 89 additions and 138 deletions
|
|
@ -2,7 +2,6 @@
|
|||
using NLog;
|
||||
using ServerManagerTool.Common.Enums;
|
||||
using ServerManagerTool.Common.Extensions;
|
||||
using ServerManagerTool.Common.Interfaces;
|
||||
using ServerManagerTool.Common.Lib;
|
||||
using ServerManagerTool.Common.Model;
|
||||
using ServerManagerTool.Common.Utils;
|
||||
|
|
@ -77,7 +76,7 @@ namespace ServerManagerTool.Lib
|
|||
this.Players = new SortableObservableCollection<PlayerInfo>();
|
||||
}
|
||||
|
||||
public async Task DisposeAsync()
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
if (_cancellationTokenSource != null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using ServerManagerTool.Common.Interfaces;
|
||||
|
||||
namespace ServerManagerTool.Lib
|
||||
{
|
||||
|
|
@ -15,7 +14,7 @@ namespace ServerManagerTool.Lib
|
|||
|
||||
public string ProfileId;
|
||||
|
||||
public async Task DisposeAsync()
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
await UnregisterAction();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue