mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-21 17:13:09 +08:00
21 lines
443 B
C#
21 lines
443 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace System.Application.Services
|
|
{
|
|
public interface IHttpService
|
|
{
|
|
public static IHttpService Instance => DI.Get<IHttpService>();
|
|
|
|
Task<T?> GetAsync<T>(string requestUri, CancellationToken cancellationToken = default) where T : notnull;
|
|
}
|
|
|
|
#if DEBUG
|
|
|
|
[Obsolete("use IHttpService.Instance", true)]
|
|
public class HttpServices
|
|
{
|
|
}
|
|
|
|
#endif
|
|
} |