Skip to content

Commit f0e4f6d

Browse files
authored
Creating version 1.0.2 (#5)
1 parent 0bbe2f7 commit f0e4f6d

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

dotnet-sdk-airtime/src/main/Operation/BaseAirtimeOperation.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ protected async Task<ReloadlyRequest<TResponse>> CreateGetRequestAsync<TResponse
7272
var accessToken = await RetrieveAccessTokenAsync();
7373

7474
return new ReloadlyRequest<TResponse>(HttpMethod.Get, uri)
75-
.AddHeader(HeaderNames.Accept, ReloadlyApiVersion.AirtimeV1)
76-
.AddHeader(HeaderNames.Authorization, $"Bearer {accessToken}");
75+
.SetHeader(HeaderNames.Accept, ReloadlyApiVersion.AirtimeV1)
76+
.SetHeader(HeaderNames.Authorization, $"Bearer {accessToken}");
7777
}
7878

7979
protected async Task<ReloadlyRequest<TResponse>> CreatePostRequestAsync<TResponse>(Uri uri, object body)
@@ -82,9 +82,9 @@ protected async Task<ReloadlyRequest<TResponse>> CreatePostRequestAsync<TRespons
8282
var accessToken = await RetrieveAccessTokenAsync();
8383

8484
return new ReloadlyRequest<TResponse>(HttpMethod.Post, uri)
85-
.AddHeader(HeaderNames.Accept, ReloadlyApiVersion.AirtimeV1)
86-
.AddHeader(HeaderNames.ContentType, MediaTypeNames.Application.Json)
87-
.AddHeader(HeaderNames.Authorization, $"Bearer {accessToken}")
85+
.SetHeader(HeaderNames.Accept, ReloadlyApiVersion.AirtimeV1)
86+
.SetHeader(HeaderNames.ContentType, MediaTypeNames.Application.Json)
87+
.SetHeader(HeaderNames.Authorization, $"Bearer {accessToken}")
8888
.SetBody(body);
8989
}
9090

dotnet-sdk-airtime/src/main/Reloadly.Airtime.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<TargetFramework>netstandard2.1</TargetFramework>
55
<LangVersion>8.0</LangVersion>
66
<Nullable>enable</Nullable>
7-
<Version>1.0.1</Version>
7+
<Version>1.0.2</Version>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Reloadly.Authentication" Version="1.0.1" />
11+
<PackageReference Include="Reloadly.Authentication" Version="1.0.2" />
1212
</ItemGroup>
1313

1414
</Project>

dotnet-sdk-authentication/src/main/Operation/OAuth2Operation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public Task<OAuthTokenResponse> GetAccessTokenAsync()
7272

7373
request
7474
.SetBody(requestBody)
75-
.AddHeader(HeaderNames.Accept, MediaTypeNames.Application.Json);
75+
.SetHeader(HeaderNames.Accept, MediaTypeNames.Application.Json);
7676

7777
return _httpClient.SendAsync(request);
7878
}

dotnet-sdk-authentication/src/main/Reloadly.Authentication.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<TargetFramework>netstandard2.1</TargetFramework>
55
<LangVersion>8.0</LangVersion>
66
<Nullable>enable</Nullable>
7-
<Version>1.0.1</Version>
7+
<Version>1.0.2</Version>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<PackageReference Include="Microsoft.Net.Http.Headers" Version="2.2.8" />
1212
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
13-
<PackageReference Include="Reloadly.Core" Version="1.0.1" />
13+
<PackageReference Include="Reloadly.Core" Version="1.0.2" />
1414
</ItemGroup>
1515

1616
</Project>

dotnet-sdk-core/src/main/Reloadly.Core/Reloadly.Core.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<TargetFramework>netstandard2.1</TargetFramework>
55
<LangVersion>8.0</LangVersion>
66
<Nullable>enable</Nullable>
7-
<Version>1.0.1</Version>
7+
<Version>1.0.2</Version>
8+
<UserSecretsId>80b46c7e-c072-4f0a-8a3d-7e5627541015</UserSecretsId>
89
</PropertyGroup>
910

1011
<ItemGroup>

dotnet-sdk-core/src/test/Reloadly.Core.Testing/Reloadly.Core.Testing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageReference Include="Microsoft.Extensions.Http" Version="5.0.0" />
1010
<PackageReference Include="Moq" Version="4.16.1" />
1111
<PackageReference Include="MSTest.TestFramework" Version="2.2.3" />
12-
<PackageReference Include="Reloadly.Core" Version="1.0.1" />
12+
<PackageReference Include="Reloadly.Core" Version="1.0.2" />
1313
</ItemGroup>
1414

1515
</Project>

0 commit comments

Comments
 (0)