1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-08 14:18:20 -05:00
IW4M-Admin/SharedLibraryCore/Interfaces/IMasterCommunication.cs
RaidMax 9b9c1bd851 support custom master url
refactor api instatation to allow custom master url in config
2020-06-30 16:39:32 -05:00

25 lines
688 B
C#

using System.Threading;
using System.Threading.Tasks;
namespace SharedLibraryCore.Interfaces
{
/// <summary>
/// defines the capabilities of the communication to the master server
/// </summary>
public interface IMasterCommunication
{
/// <summary>
/// checks the current version of IW4MAdmin against the master version
/// </summary>
/// <returns></returns>
Task CheckVersion();
/// <summary>
/// Sends heart beats to the master
/// </summary>
/// <param name="token">Cancellation token</param>
/// <returns></returns>
Task RunUploadStatus(CancellationToken token);
}
}