Bedrockit.Extensions.DependencyInjection 2.4.0

dotnet add package Bedrockit.Extensions.DependencyInjection --version 2.4.0
                    
NuGet\Install-Package Bedrockit.Extensions.DependencyInjection -Version 2.4.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="Bedrockit.Extensions.DependencyInjection" Version="2.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bedrockit.Extensions.DependencyInjection" Version="2.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Bedrockit.Extensions.DependencyInjection" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bedrockit.Extensions.DependencyInjection --version 2.4.0
                    
#r "nuget: Bedrockit.Extensions.DependencyInjection, 2.4.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.
#:package Bedrockit.Extensions.DependencyInjection@2.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bedrockit.Extensions.DependencyInjection&version=2.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Bedrockit.Extensions.DependencyInjection&version=2.4.0
                    
Install as a Cake Tool

Bedrockit.Extensions.DependencyInjection

Dependency injection extensions for Bedrockit.

Installation

You can install the Bedrockit.Extensions.DependencyInjection package via NuGet Package Manager Console:

Install-Package Bedrockit.Extensions.DependencyInjection

Or via .NET CLI:

dotnet add package Bedrockit.Extensions.DependencyInjection

Usage

To use Bedrockit in your ASP.NET Core application, you need to configure it. First, you need to add the Bedrock section in your appsettings.json file:

{
  "Bedrock": {
    "PublicGateway": "https://xxxx.com",
    "AuthServer": "https://xxxx.com",
    "ClientId": "CLIENTID",
    "ClientSecret": "CLIENTSECRET"
  }
}

Then, you can configure Bedrockit in your Startup.cs or Program.cs file:

using Bedrockit.AspNetCore;

var builder = WebApplication.CreateBuilder(args);
builder.AddControllers();
// Add Bedrockit services
builder.Services.AddBedrockit(builder.Configuration);

// Other service configurations

You can then inject IBedrockClient into your controllers or services to interact with the Bedrock API:

using Bedrockit;

public class MyController : ControllerBase
{
    private readonly IBedrockClient _bedrockClient;

    public MyController(IBedrockClient bedrockClient)
    {
        _bedrockClient = bedrockClient;
    }

    public async Task<IActionResult> GetModels()
    {
        // Use _bedrockClient to interact with Bedrock API
        return Ok();
    }
}

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Bedrockit.Extensions.DependencyInjection:

Package Downloads
Bedrockit.AspNetCore

Bedrock SDK for ASPNETCORE

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.4.0 243 1/8/2026
2.4.0-rc.13 86 1/8/2026
2.4.0-rc.12 87 1/5/2026
2.4.0-rc.11 94 1/5/2026
2.4.0-rc.10 84 1/5/2026
2.4.0-rc.9 88 1/5/2026
2.4.0-rc.8 81 1/5/2026
2.4.0-rc.7 82 1/5/2026
2.4.0-rc.6 88 1/4/2026
2.4.0-rc.5 83 12/30/2025
2.4.0-rc.4 152 12/26/2025
2.4.0-rc.3 164 12/25/2025
2.4.0-rc.2 161 12/25/2025
2.4.0-rc.1 161 12/24/2025
2.3.2 316 12/18/2025
2.3.1 314 12/18/2025
2.2.2 320 12/17/2025