AzureFunctionsV1.DependencyInjection
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AzureFunctionsV1.DependencyInjection --version 1.0.0
NuGet\Install-Package AzureFunctionsV1.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="AzureFunctionsV1.DependencyInjection" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AzureFunctionsV1.DependencyInjection --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AzureFunctionsV1.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 AzureFunctionsV1.DependencyInjection as a Cake Addin #addin nuget:?package=AzureFunctionsV1.DependencyInjection&version=1.0.0 // Install AzureFunctionsV1.DependencyInjection as a Cake Tool #tool nuget:?package=AzureFunctionsV1.DependencyInjection&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
How to add dependency-injection in you FunctionApp:
- Add Startup class in your function app (shown in below image) You can modify the services based on your requirement.
using AzureFunctionsV1.DependencyInjection.Infra;
[Image of Startup]-https://github.com/sanjaykumar19-repo/azure-functions-v1-dependency-injection/blob/master/Startup.PNG
- Add below line in your FunctionApp class file.
[Image of FunctionApp]- https://github.com/sanjaykumar19-repo/azure-functions-v1-dependency-injection/blob/master/FunctionApp.PNG
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- Microsoft.Extensions.Configuration (>= 1.1.1)
- Microsoft.Extensions.DependencyInjection (>= 1.1.1)
- Microsoft.Extensions.Logging (>= 1.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.