mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
add cancellation token for rcon connection to allow more granular control
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using SharedLibraryCore.RCon;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
@ -14,7 +15,7 @@ namespace SharedLibraryCore.Interfaces
|
||||
/// <param name="type">type of RCon query to perform</param>
|
||||
/// <param name="parameters">optional parameter list</param>
|
||||
/// <returns></returns>
|
||||
Task<string[]> SendQueryAsync(StaticHelpers.QueryType type, string parameters = "");
|
||||
Task<string[]> SendQueryAsync(StaticHelpers.QueryType type, string parameters = "", CancellationToken token = default);
|
||||
|
||||
/// <summary>
|
||||
/// sets the rcon parser
|
||||
@ -22,4 +23,4 @@ namespace SharedLibraryCore.Interfaces
|
||||
/// <param name="config">parser</param>
|
||||
void SetConfiguration(IRConParser config);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user