Skip to content

Commit

Permalink
Creating version 1.0.2 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhatozgel authored May 24, 2021
1 parent 0bbe2f7 commit f0e4f6d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
10 changes: 5 additions & 5 deletions dotnet-sdk-airtime/src/main/Operation/BaseAirtimeOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ protected async Task<ReloadlyRequest<TResponse>> CreateGetRequestAsync<TResponse
var accessToken = await RetrieveAccessTokenAsync();

return new ReloadlyRequest<TResponse>(HttpMethod.Get, uri)
.AddHeader(HeaderNames.Accept, ReloadlyApiVersion.AirtimeV1)
.AddHeader(HeaderNames.Authorization, $"Bearer {accessToken}");
.SetHeader(HeaderNames.Accept, ReloadlyApiVersion.AirtimeV1)
.SetHeader(HeaderNames.Authorization, $"Bearer {accessToken}");
}

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

return new ReloadlyRequest<TResponse>(HttpMethod.Post, uri)
.AddHeader(HeaderNames.Accept, ReloadlyApiVersion.AirtimeV1)
.AddHeader(HeaderNames.ContentType, MediaTypeNames.Application.Json)
.AddHeader(HeaderNames.Authorization, $"Bearer {accessToken}")
.SetHeader(HeaderNames.Accept, ReloadlyApiVersion.AirtimeV1)
.SetHeader(HeaderNames.ContentType, MediaTypeNames.Application.Json)
.SetHeader(HeaderNames.Authorization, $"Bearer {accessToken}")
.SetBody(body);
}

Expand Down
4 changes: 2 additions & 2 deletions dotnet-sdk-airtime/src/main/Reloadly.Airtime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Reloadly.Authentication" Version="1.0.1" />
<PackageReference Include="Reloadly.Authentication" Version="1.0.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Task<OAuthTokenResponse> GetAccessTokenAsync()

request
.SetBody(requestBody)
.AddHeader(HeaderNames.Accept, MediaTypeNames.Application.Json);
.SetHeader(HeaderNames.Accept, MediaTypeNames.Application.Json);

return _httpClient.SendAsync(request);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Net.Http.Headers" Version="2.2.8" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Reloadly.Core" Version="1.0.1" />
<PackageReference Include="Reloadly.Core" Version="1.0.2" />
</ItemGroup>

</Project>
3 changes: 2 additions & 1 deletion dotnet-sdk-core/src/main/Reloadly.Core/Reloadly.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
<UserSecretsId>80b46c7e-c072-4f0a-8a3d-7e5627541015</UserSecretsId>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageReference Include="Microsoft.Extensions.Http" Version="5.0.0" />
<PackageReference Include="Moq" Version="4.16.1" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.3" />
<PackageReference Include="Reloadly.Core" Version="1.0.1" />
<PackageReference Include="Reloadly.Core" Version="1.0.2" />
</ItemGroup>

</Project>

0 comments on commit f0e4f6d

Please sign in to comment.