-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
148 changed files
with
2,085 additions
and
2,116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Common
updated
86 files
Submodule ValveKeyValue
updated
1 files
+4 −0 | ValveKeyValue/ValveKeyValue/Deserialization/KeyValues1/KV1TextReader.cs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net$(DotNet_Version);net$(DotNet_Version)-android;net$(DotNet_Version)-ios;net$(DotNet_Version)-macos;net$(DotNet_Version)-maccatalyst</TargetFrameworks> | ||
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net$(DotNet_Version)-windows$(WinSDK_Version)</TargetFrameworks> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<UseCommon8Bcl>true</UseCommon8Bcl> | ||
<UseCommon8PrimitivesApiResponse>true</UseCommon8PrimitivesApiResponse> | ||
<UseCommon8PrimitivesApiRsp>true</UseCommon8PrimitivesApiRsp> | ||
<UseCommon8Crawler>true</UseCommon8Crawler> | ||
<UseCommon8PrimitivesToast>true</UseCommon8PrimitivesToast> | ||
<UseReactiveUI>true</UseReactiveUI> | ||
<UseCommon8Toast>true</UseCommon8Toast> | ||
<UseCommon8HttpClientFactory>true</UseCommon8HttpClientFactory> | ||
<IsGlobalUsingsMSBuildProjectName>true</IsGlobalUsingsMSBuildProjectName> | ||
</PropertyGroup> | ||
<Import Project="$(MSBuildThisFileDirectory)..\Sdk\$(MSBuildProjectName).props" /> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)..\Sdk\TFM_NETX_WITH_ALL.props" /> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'=='Release'"> | ||
<IsPackable>true</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\Shared\GlobalUsings.SteamAchievementManager.cs"> | ||
<LinkBase>Properties\GlobalUsings</LinkBase> | ||
</Compile> | ||
<Compile Include="..\Shared\GlobalUsings.ValveKeyValue.cs"> | ||
<LinkBase>Properties\GlobalUsings</LinkBase> | ||
</Compile> | ||
<Compile Include="..\Shared\GlobalUsings.BD.SteamClient8.cs"> | ||
<LinkBase>Properties\GlobalUsings</LinkBase> | ||
</Compile> | ||
<Compile Include="..\Shared\GlobalUsings.BD.SteamClient8.Primitives.cs"> | ||
<LinkBase>Properties\GlobalUsings</LinkBase> | ||
</Compile> | ||
<Compile Include="..\Shared\GlobalUsings.BD.SteamClient8.Models.cs"> | ||
<LinkBase>Properties\GlobalUsings</LinkBase> | ||
</Compile> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'"> | ||
<!-- Windows Only --> | ||
<PackageReference Include="System.Management" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\BD.SteamClient8\BD.SteamClient8.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
100 changes: 0 additions & 100 deletions
100
src/BD.SteamClient8.Impl/Extensions/ArchitectureEnumExtensions.cs
This file was deleted.
Oops, something went wrong.
86 changes: 43 additions & 43 deletions
86
src/BD.SteamClient8.Impl/Extensions/CommonImageSourceExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
namespace BD.SteamClient8.Impl.Extensions; | ||
//namespace BD.SteamClient8.Impl.Extensions; | ||
|
||
/// <summary> | ||
/// 提供 <see cref="CommonImageSource"/> 扩展 | ||
/// </summary> | ||
public static class CommonImageSourceExtensions | ||
{ | ||
/// <summary> | ||
/// 获取 <see cref="CommonImageSource"/> 对象 | ||
/// </summary> | ||
/// <param name="requestUri">图片的请求地址</param> | ||
/// <param name="isPolly">是否进行 Polly 重试</param> | ||
/// <param name="cache">是否使用缓存</param> | ||
/// <param name="cacheFirst">是否优先使用缓存</param> | ||
/// <param name="category">HTTP 请求的优先级别</param> | ||
/// <param name="isCircle">是否将图片剪裁为圆形</param> | ||
/// <param name="config">对 CommonImageSource 对象的配置委托</param> | ||
/// <param name="cancellationToken">取消操作的取消标记</param> | ||
/// <returns>异步返回 <see cref="CommonImageSource"/> 对象,如果获取失败则返回 <see langword="null"/></returns> | ||
public static async Task<CommonImageSource?> GetAsync( | ||
string requestUri, | ||
bool isPolly = true, | ||
bool cache = false, | ||
bool cacheFirst = false, | ||
HttpHandlerCategory category = HttpHandlerCategory.UserInitiated, | ||
bool isCircle = false, | ||
Action<CommonImageSource>? config = null, | ||
CancellationToken cancellationToken = default) | ||
{ | ||
var imageHttpClientService = Ioc.Get_Nullable<IImageHttpClientService>(); | ||
if (imageHttpClientService == default) | ||
return default; | ||
///// <summary> | ||
///// 提供 <see cref="CommonImageSource"/> 扩展 | ||
///// </summary> | ||
//public static class CommonImageSourceExtensions | ||
//{ | ||
// /// <summary> | ||
// /// 获取 <see cref="CommonImageSource"/> 对象 | ||
// /// </summary> | ||
// /// <param name="requestUri">图片的请求地址</param> | ||
// /// <param name="isPolly">是否进行 Polly 重试</param> | ||
// /// <param name="cache">是否使用缓存</param> | ||
// /// <param name="cacheFirst">是否优先使用缓存</param> | ||
// /// <param name="category">HTTP 请求的优先级别</param> | ||
// /// <param name="isCircle">是否将图片剪裁为圆形</param> | ||
// /// <param name="config">对 CommonImageSource 对象的配置委托</param> | ||
// /// <param name="cancellationToken">取消操作的取消标记</param> | ||
// /// <returns>异步返回 <see cref="CommonImageSource"/> 对象,如果获取失败则返回 <see langword="null"/></returns> | ||
// public static async Task<CommonImageSource?> GetAsync( | ||
// string requestUri, | ||
// bool isPolly = true, | ||
// bool cache = false, | ||
// bool cacheFirst = false, | ||
// HttpHandlerCategory category = HttpHandlerCategory.UserInitiated, | ||
// bool isCircle = false, | ||
// Action<CommonImageSource>? config = null, | ||
// CancellationToken cancellationToken = default) | ||
// { | ||
// var imageHttpClientService = Ioc.Get_Nullable<IImageHttpClientService>(); | ||
// if (imageHttpClientService == default) | ||
// return default; | ||
|
||
var imageMemoryStream = await imageHttpClientService.GetImageMemoryStreamAsync(requestUri, isPolly, cache, cacheFirst, category, cancellationToken); | ||
if (imageMemoryStream == default) | ||
return default; | ||
// var imageMemoryStream = await imageHttpClientService.GetImageMemoryStreamAsync(requestUri, isPolly, cache, cacheFirst, category, cancellationToken); | ||
// if (imageMemoryStream == default) | ||
// return default; | ||
|
||
CommonImageSource? clipStream = imageMemoryStream; | ||
if (clipStream != null) | ||
{ | ||
clipStream.Circle = isCircle; | ||
config?.Invoke(clipStream); | ||
} | ||
return clipStream; | ||
} | ||
} | ||
// CommonImageSource? clipStream = imageMemoryStream; | ||
// if (clipStream != null) | ||
// { | ||
// clipStream.Circle = isCircle; | ||
// config?.Invoke(clipStream); | ||
// } | ||
// return clipStream; | ||
// } | ||
//} |
4 changes: 1 addition & 3 deletions
4
src/BD.SteamClient8.Impl/Extensions/ServiceCollectionExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/BD.SteamClient8.Impl/Extensions/SteamSessionExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.