SoporNu.Extensions.Microsoft.DependencyInjection 0.0.2-alpha

This is a prerelease version of SoporNu.Extensions.Microsoft.DependencyInjection.
dotnet add package SoporNu.Extensions.Microsoft.DependencyInjection --version 0.0.2-alpha                
NuGet\Install-Package SoporNu.Extensions.Microsoft.DependencyInjection -Version 0.0.2-alpha                
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="SoporNu.Extensions.Microsoft.DependencyInjection" Version="0.0.2-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SoporNu.Extensions.Microsoft.DependencyInjection --version 0.0.2-alpha                
#r "nuget: SoporNu.Extensions.Microsoft.DependencyInjection, 0.0.2-alpha"                
#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 SoporNu.Extensions.Microsoft.DependencyInjection as a Cake Addin
#addin nuget:?package=SoporNu.Extensions.Microsoft.DependencyInjection&version=0.0.2-alpha&prerelease

// Install SoporNu.Extensions.Microsoft.DependencyInjection as a Cake Tool
#tool nuget:?package=SoporNu.Extensions.Microsoft.DependencyInjection&version=0.0.2-alpha&prerelease                

SoporNu.Extensions.Microsoft.DependencyInjection

DI-tillägg för Microsoft.Extensions.DependencyInjection. SoporNu är en .NET API-klient för Sopor.nu Hitta återvinning.

Användning

  1. Lägg NuGet SoporNu.Extensions.Microsoft.DependencyInjection till ditt projekt:

    dotnet add package SoporNu.Extensions.Microsoft.DependencyInjection --prerelease
    
  2. Vid start-up av din app, lägg till SoporNu:

    builder.Services.AddSoporApiClient();
    
  3. Ta ett beroende på ISoporApiClient, och hämta ÅVS från Avfallshubben. T.ex.:

    public class AvsService
    {
        private readonly ISoporApiClient _client;
    
        public AvsService(ISoporApiClient client)
        {
            _client = client;
        }
    }
    

Hur bidra

SoporNu är öppen källkod (MIT), och du får gärna bidra!

Om du har en buggrapport, en funktionsbegäran, eller ett förslag, öppna ett nytt ärende. För att skicka in en patch, var vänlig skapa en PR.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.

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.2-alpha 66 1/30/2024
0.0.1-alpha 53 1/30/2024