BuddyApiClient.Extensions.Microsoft.DependencyInjection
0.0.5-alpha
dotnet add package BuddyApiClient.Extensions.Microsoft.DependencyInjection --version 0.0.5-alpha
NuGet\Install-Package BuddyApiClient.Extensions.Microsoft.DependencyInjection -Version 0.0.5-alpha
<PackageReference Include="BuddyApiClient.Extensions.Microsoft.DependencyInjection" Version="0.0.5-alpha" />
paket add BuddyApiClient.Extensions.Microsoft.DependencyInjection --version 0.0.5-alpha
#r "nuget: BuddyApiClient.Extensions.Microsoft.DependencyInjection, 0.0.5-alpha"
// Install BuddyApiClient.Extensions.Microsoft.DependencyInjection as a Cake Addin #addin nuget:?package=BuddyApiClient.Extensions.Microsoft.DependencyInjection&version=0.0.5-alpha&prerelease // Install BuddyApiClient.Extensions.Microsoft.DependencyInjection as a Cake Tool #tool nuget:?package=BuddyApiClient.Extensions.Microsoft.DependencyInjection&version=0.0.5-alpha&prerelease
BuddyApiClient.Extensions.Microsoft.DependencyInjection
BuddyApiClient extensions for Microsoft.Extensions.DependencyInjection.
How to use
Add the BuddyApiClient.Extensions.Microsoft.DependencyInjection NuGet to your project:
dotnet add package BuddyApiClient.Extensions.Microsoft.DependencyInjection --prerelease
On app start-up, add BuddyApiClient to your container:
builder.Services.AddBuddyClient();
Get a personal access token, or a OAuth2 access token.
Use the
CreateBuddyClient
factory delegate to create an instance ofIBuddyClient
, and query the Buddy API using your token. E.g:public class BuddyService { private readonly IBuddyClient _client; public BuddyService(CreateBuddyClient createBuddyClient) { _client = createBuddyClient("YOUR_TOKEN_HERE"); } }
See the console app sample.
How to contribute
BuddyApiClient is Open Source (MIT), and you're welcome to contribute!
If you have a bug report, feature request, or suggestion, please open a new issue. To submit a patch, please send a pull request.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- BuddyApiClient (>= 0.0.5-alpha)
- Microsoft.Extensions.Http (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.5-alpha | 141 | 6/14/2022 |
0.0.4-alpha | 122 | 6/12/2022 |