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:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user