using System.Application; using System.Application.Services; using System.IO; using System.Threading; using System.Threading.Tasks; namespace System.Application { /// /// 图片下载渠道类型 /// public enum ImageChannelType { /// /// Steam 头像图片 /// SteamAvatars, /// /// Steam 游戏图片 /// SteamGames, } } namespace System { public static class ImageChannelTypeEnumExtensions { /// public static Task GetImageAsync(this IHttpService httpService, string requestUri, ImageChannelType channelType, CancellationToken cancellationToken = default) { var channelType_ = channelType.ToString(); return httpService.GetImageAsync(requestUri, channelType_, cancellationToken); } } }