DD.WellWorkover.Cloud/AsbCloudApp/Services/ITimeZoneService.cs

29 lines
928 B
C#
Raw Normal View History

using AsbCloudApp.Data;
2021-11-22 11:30:08 +05:00
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
2022-08-09 11:10:01 +05:00
/// <summary>
/// сервис определения временной зоны
/// </summary>
public interface ITimezoneService
2021-11-22 11:30:08 +05:00
{
2022-08-09 11:10:01 +05:00
/// <summary>
/// по координатам
/// </summary>
/// <param name="latitude"></param>
/// <param name="longitude"></param>
/// <returns></returns>
SimpleTimezoneDto GetByCoordinates(double latitude, double longitude);
2022-08-09 11:10:01 +05:00
/// <summary>
/// по координатам
/// </summary>
/// <param name="latitude"></param>
/// <param name="longitude"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<Data.SimpleTimezoneDto> GetByCoordinatesAsync(double latitude, double longitude, CancellationToken token);
2021-11-22 11:30:08 +05:00
}
}