Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.10.0 #19

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"NugetApiKey": {
"type": "string",
"description": "Nuget Api Key",
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
},
"Solution": {
"type": "string",
"description": "Path to a solution file that is automatically loaded"
}
},
"definitions": {
"Host": {
"type": "string",
Expand Down Expand Up @@ -112,5 +101,22 @@
}
}
},
"$ref": "#/definitions/NukeBuild"
"allOf": [
{
"properties": {
"NugetApiKey": {
"type": "string",
"description": "Nuget Api Key",
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
},
"Solution": {
"type": "string",
"description": "Path to a solution file that is automatically loaded"
}
}
},
{
"$ref": "#/definitions/NukeBuild"
}
]
}
2 changes: 1 addition & 1 deletion Package.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>1.9.0</Version>
<Version>1.10.0</Version>
<Authors>Hawxy</Authors>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
Expand Down
2 changes: 1 addition & 1 deletion build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Playwright" Version="1.49.0" />
<PackageReference Include="Nuke.Common" Version="9.0.3" />
<PackageDownload Include="Microsoft.OpenApi.Kiota" Version="[1.21.0]" />
<PackageDownload Include="Microsoft.OpenApi.Kiota" Version="[1.22.0]" />
</ItemGroup>

</Project>
10 changes: 10 additions & 0 deletions src/Clerk.Net.DependencyInjection/DependencyInjectionExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Clerk.Net.Client;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
using Microsoft.Kiota.Http.HttpClientLibrary;

namespace Clerk.Net.DependencyInjection;

Expand Down Expand Up @@ -29,6 +31,14 @@ public static IHttpClientBuilder AddClerkApiClient(this IServiceCollection colle
})
.SetHandlerLifetime(Timeout.InfiniteTimeSpan);

var types = KiotaClientFactory.GetDefaultHandlerTypes();

foreach (var type in types)
{
collection.TryAddTransient(type);
clientBuilder.AddHttpMessageHandler(sp => (DelegatingHandler)sp.GetRequiredService(type));
}

collection.Configure(options);

collection.AddSingleton<ClerkApiClient>(x =>
Expand Down
4 changes: 2 additions & 2 deletions src/Clerk.Net.Tests/Clerk.Net.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit.v3" Version="1.0.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0">
<PackageReference Include="xunit.v3" Version="1.0.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion src/Clerk.Net/Clerk.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Kiota.Bundle" Version="1.15.2" />
<PackageReference Include="Microsoft.Kiota.Bundle" Version="1.16.3" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Clerk.Net/Client/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"descriptionHash": "6C166B14F3040A4607BF09D6FDFFEAC8B81649FF07452EBE4125AB948BAE5A128FE379586708589F8551593757EDF9A2579746582A0EE3CAE195A30EED6F455F",
"descriptionHash": "5D3BE49EB3B1FD51EEB3628A3510A9B8B03FA9143518D22BBBDF7ECA01EF8EBCB0808BCA6AF1A5E7BBBB7742DFBD038FCFF10F78D0F806FD5CB1FE919DCD0762",
"descriptionLocation": "../swagger.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.21.0",
"kiotaVersion": "1.22.0",
"clientClassName": "ClerkApiClient",
"typeAccessModifier": "Public",
"clientNamespaceName": "Clerk.Net.Client",
Expand Down
Loading