Bedrockit.AspNetCore 2.4.0

dotnet add package Bedrockit.AspNetCore --version 2.4.0
                    
NuGet\Install-Package Bedrockit.AspNetCore -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.AspNetCore" Version="2.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bedrockit.AspNetCore" Version="2.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Bedrockit.AspNetCore" />
                    
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.AspNetCore --version 2.4.0
                    
#r "nuget: Bedrockit.AspNetCore, 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.AspNetCore@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.AspNetCore&version=2.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Bedrockit.AspNetCore&version=2.4.0
                    
Install as a Cake Tool

Bedrockit.AspNetCore

Bedrockit.AspNetCore is an ASP.NET Core integration library for Bedrockit, a .NET client library for interacting with BiuTech Bedrock.

Installation

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

Install-Package Bedrockit.AspNetCore

Or via .NET CLI:

dotnet add package Bedrockit.AspNetCore

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.Services.AddBedrockit(builder.Configuration)
    // Bedrockit.AspNetCore specific configurations
    .UseWorkflows(workflows =>
    {
        workflows.AddWorkflowActivity<TestActivity>();
    });

Workflow Activities

You can define custom workflow activities by implementing the IWorkflowActivity or ICompensableWorkflowActivity interface. Here's an example:

using Bedrockit.Workflows;

public class TestActivity : IWorkflowActivity
{
    public Input<string> InputData { get; set; }
    public Output<string> Result { get; set; }
    
    public async Task ExecuteAsync(WorkflowActivityContext context, CancellationToken cancellationToken)
    {
        // access input data
        string input = InputData.Get(context);
        
        // log messages
        await context.LogInformationAsync("TestActivity executed successfully.");
        
        // set output if needed
        await context.SetAsync(Result, "Success");
    }
}
Product Compatible and additional computed target framework versions.
.NET 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. 
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
2.4.0 216 1/8/2026
2.4.0-rc.13 82 1/8/2026
2.4.0-rc.12 84 1/5/2026
2.4.0-rc.11 90 1/5/2026
2.4.0-rc.10 80 1/5/2026
2.4.0-rc.9 88 1/5/2026
2.4.0-rc.8 80 1/5/2026
2.4.0-rc.7 83 1/5/2026
2.4.0-rc.6 79 1/4/2026
2.4.0-rc.5 81 12/30/2025
2.4.0-rc.4 134 12/26/2025
2.4.0-rc.3 156 12/25/2025
2.4.0-rc.2 159 12/25/2025
2.4.0-rc.1 162 12/24/2025
2.3.2 300 12/18/2025
2.3.1 299 12/18/2025
2.2.2 308 12/17/2025