Skip to content

Commit fefac96

Browse files
committed
[ci skip] Update NuGet packages & cleanup
1 parent 8677014 commit fefac96

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

src/Server/Helpers/Http/Client/IHttpClientProxy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public interface IHttpClientProxy
1313
/// <param name="option"></param>
1414
/// <param name="token"></param>
1515
/// <returns></returns>
16-
/// <remarks>Do no call. Use an overload.</remarks>
16+
/// <remarks>Do not call. Use an overload.</remarks>
1717
protected Task<HttpResponseMessage> SendAsync(string actualCaller, HttpRequestMessage request, HttpCompletionOption? option = null, CancellationToken? token = null);
1818

1919
public Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, HttpCompletionOption? option = null,

src/Server/Helpers/Http/Endpoint/PaginatedEndpoint.Builder.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public BuilderApi(IHttpClientProxy httpClient)
2323
public HttpContentParser ContentParser { get; private set; } = null!;
2424
public int PerPage { get; private set; } = 100;
2525

26-
public Dictionary<string, object> QueryStringParameters { get; private set; } = new();
26+
public SafeDictionary<string, object> QueryStringParameters { get; private set; } = new();
2727

2828
public BuilderApi WithBaseUrl(string url)
2929
{
@@ -36,12 +36,9 @@ public BuilderApi WithContentParser(HttpContentParser contentParser)
3636
ContentParser = contentParser;
3737
return this;
3838
}
39-
39+
4040
public BuilderApi WithJsonContentParser(JsonTypeInfo<IEnumerable<T>> typeInfo)
41-
{
42-
ContentParser = content => content.ReadFromJsonAsync(typeInfo)!;
43-
return this;
44-
}
41+
=> WithContentParser(content => content.ReadFromJsonAsync(typeInfo)!);
4542

4643
public BuilderApi WithPerPageCount(int perPage)
4744
{

src/Server/Ryujinx.Systems.Update.Server.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="Gommon" Version="2.7.1.2" />
18-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.5"/>
19-
<PackageReference Include="NGitLab" Version="8.7.0" />
20-
<PackageReference Include="NSwag.AspNetCore" Version="14.2.0" />
17+
<PackageReference Include="Gommon" Version="2.8.0" />
18+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.9" />
19+
<PackageReference Include="NGitLab" Version="10.3.0" />
20+
<PackageReference Include="NSwag.AspNetCore" Version="14.5.0" />
2121
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="9.0.0" Condition="'$(Configuration)'=='Debug'" />
2222

2323
<ProjectReference Include="../Common/Ryujinx.Systems.Update.Common.csproj" />

src/Server/Services/GitLab/VersionCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void Init(ProjectId projectId) => Executor.ExecuteBackgroundAsync(async (
9898
}
9999
});
100100

101-
public Task<Gommon.Extensions.ScopedSemaphoreLock> TakeLockAsync() => _semaphore.TakeAsync();
101+
public Task<IDisposable> TakeLockAsync() => _semaphore.TakeAsync();
102102

103103
public VersionCacheEntry? Latest => this[_latestTag ?? string.Empty];
104104

0 commit comments

Comments
 (0)