mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-24 07:05:37 +01:00
22 lines
545 B
C#
22 lines
545 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 appName)
|
|
{
|
|
ArgumentUtility.CheckStringForNullOrEmpty(appName, nameof(appName));
|
|
|
|
return await this.updaterStore.GetVersionInfo(appName);
|
|
}
|
|
}
|
|
}
|