1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Initial .net 6 upgrades

This commit is contained in:
RaidMax
2022-01-26 10:32:16 -06:00
parent 513f0afd34
commit 6f6dd035ee
170 changed files with 2805 additions and 2577 deletions

View File

@ -1,12 +1,10 @@
using System;
using System.Threading;
using System.Threading.Tasks;
namespace SharedLibraryCore.Helpers
{
public class MessageToken
{
public string Name { get; private set; }
private readonly Func<Server, Task<string>> _asyncValue;
@ -16,10 +14,12 @@ namespace SharedLibraryCore.Helpers
_asyncValue = Value;
}
public string Name { get; }
public async Task<string> ProcessAsync(Server server)
{
string result = await _asyncValue(server);
var result = await _asyncValue(server);
return result;
}
}
}
}