Asana.Net.DependencyInjection
1.0.0
dotnet add package Asana.Net.DependencyInjection --version 1.0.0
NuGet\Install-Package Asana.Net.DependencyInjection -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Asana.Net.DependencyInjection" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Asana.Net.DependencyInjection --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Asana.Net.DependencyInjection, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Asana.Net.DependencyInjection as a Cake Addin #addin nuget:?package=Asana.Net.DependencyInjection&version=1.0.0 // Install Asana.Net.DependencyInjection as a Cake Tool #tool nuget:?package=Asana.Net.DependencyInjection&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Asana.Net
Installation
Using the .NET Core command-line interface (CLI) tools::
dotnet add package Asana.Net
dotnet add package Asana.Net.DependencyInjection
Using the NuGet Command Line Interface (CLI):
nuget install Asana.Net
nuget install Asana.Net.DependencyInjection
Using the Package Manager Console:
Install-Package Asana.Net
Install-Package Asana.Net.DependencyInjection
From within Visual Studio:
- Open the Solution Explorer.
- Right-click on a project within your solution.
- Click on Manage NuGet Packages...
- Click on the Browse tab and search for "Asana.Net".
- Click on the Asana.Net package, select the appropriate version in the right-tab and click Install.
Usage
This section contains some example of a basic usage of the library.
Exists 2 way to instance a AsanaApiClient. Using factory and using Dependency Injection
We recommend the you use DI, but we understand that there're cases the is'nt possible use DI
Factory
IAsanaApiClient client = AsanaApiClientFactory.Create("<your api key>");
Dependency Injection
Setting apiKey on AppSettings
appSettings.json
{
"apiKey": "<your api key>"
}
services.AddAsanaApiClient(Configuration);
Setting apiKey manualy
services.AddAsanaApiClient(options=> options.ApiKey = "<your api key>");
or
AsanaApiOptions options = new AsanaApiOptions { ApiKey = "<your api key>" };
services.AddAsanaApiClient(options);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- Asana.Net (>= 1.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 7.0.4)
- Microsoft.Extensions.Http (>= 7.0.0)
- Refit.HttpClientFactory (>= 7.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 |
---|---|---|
1.0.0 | 340 | 10/21/2023 |