mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
refactor a good bit of stuff for better dependency injection
fix regular expression for T6 log parsing
This commit is contained in:
25
SharedLibraryCore/Interfaces/IRConConnection.cs
Normal file
25
SharedLibraryCore/Interfaces/IRConConnection.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using SharedLibraryCore.RCon;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// defines the capabilities of an RCon connection
|
||||
/// </summary>
|
||||
public interface IRConConnection
|
||||
{
|
||||
/// <summary>
|
||||
/// sends a query with the instance of the rcon connection
|
||||
/// </summary>
|
||||
/// <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 = "");
|
||||
|
||||
/// <summary>
|
||||
/// sets the rcon parser configuration
|
||||
/// </summary>
|
||||
/// <param name="config">parser config</param>
|
||||
void SetConfiguration(IRConParserConfiguration config);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user