2020-06-30 17:39:32 -04:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// defines the capabilities of the communication to the master server
|
2020-06-30 17:39:32 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IMasterCommunication
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// checks the current version of IW4MAdmin against the master version
|
2020-06-30 17:39:32 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task CheckVersion();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// Sends heart beats to the master
|
2020-06-30 17:39:32 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="token">Cancellation token</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task RunUploadStatus(CancellationToken token);
|
|
|
|
|
}
|
2022-01-26 11:32:16 -05:00
|
|
|
|
}
|