1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-06-26 16:11:44 +02:00
GiantsTools/Giants.Services/Services/UpdaterService.cs
2020-08-10 00:29:28 -07:00

22 lines
549 B
C#

using System.Threading.Tasks;
namespace Giants.Services
{
public class UpdaterService : IUpdaterService
{
private readonly IUpdaterStore updaterStore;
public UpdaterService(IUpdaterStore updaterStore)
{
this.updaterStore = updaterStore;
}
public async Task<VersionInfo> GetVersionInfo(string gameName)
{
ArgumentUtility.CheckStringForNullOrEmpty(gameName, nameof(gameName));
return await this.updaterStore.GetVersionInfo(gameName);
}
}
}