IW4M-Admin/SharedLibraryCore/Interfaces/IMasterCommunication.cs

24 lines
699 B
C#
Raw Normal View History

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
/// </summary>
public interface IMasterCommunication
{
/// <summary>
2022-01-26 11:32:16 -05:00
/// checks the current version of IW4MAdmin against the master version
/// </summary>
/// <returns></returns>
Task CheckVersion();
/// <summary>
2022-01-26 11:32:16 -05:00
/// Sends heart beats to the master
/// </summary>
/// <param name="token">Cancellation token</param>
/// <returns></returns>
Task RunUploadStatus(CancellationToken token);
}
2022-01-26 11:32:16 -05:00
}