MeshWeaver.Kernel.Hub 3.0.0-rc13

This is a prerelease version of MeshWeaver.Kernel.Hub.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package MeshWeaver.Kernel.Hub --version 3.0.0-rc13
                    
NuGet\Install-Package MeshWeaver.Kernel.Hub -Version 3.0.0-rc13
                    
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="MeshWeaver.Kernel.Hub" Version="3.0.0-rc13" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MeshWeaver.Kernel.Hub" Version="3.0.0-rc13" />
                    
Directory.Packages.props
<PackageReference Include="MeshWeaver.Kernel.Hub" />
                    
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 MeshWeaver.Kernel.Hub --version 3.0.0-rc13
                    
#r "nuget: MeshWeaver.Kernel.Hub, 3.0.0-rc13"
                    
#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 MeshWeaver.Kernel.Hub@3.0.0-rc13
                    
#: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=MeshWeaver.Kernel.Hub&version=3.0.0-rc13&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MeshWeaver.Kernel.Hub&version=3.0.0-rc13&prerelease
                    
Install as a Cake Tool

MeshWeaver.Kernel.Hub

Overview

MeshWeaver.Kernel.Hub provides a message hub plugin for a dotnet interactive kernel. It allows notebooks to execute code against remote kernels distributed across the mesh.

Usage

Basic Configuration

var builder = WebApplication.CreateBuilder(args);

// Configure mesh with kernel support
builder.ConfigureMesh(builder => 
    builder
        .AddGraph()  // includes .AddKernel() for kernel support
        .ConfigureMesh(config => config.AddMeshNodes(/* your nodes */))
);

var app = builder.Build();

Code Execution Examples

Basic Code Execution
// Execute code through the kernel
var command = new SubmitCode("Console.WriteLine(\"Hello World\");");
client.Post(
    new KernelCommandEnvelope(KernelCommandEnvelope.Serialize(
        KernelCommandEnvelope.Create(command)))
    {
        IFrameUrl = "http://localhost/area"
    },
    o => o.WithTarget(new KernelAddress())
);
Interactive Data Processing
// Example of interactive calculator with UI updates
const string Code = @"
using MeshWeaver.Layout;
using MeshWeaver.Mesh;
using static MeshWeaver.Layout.Controls;

record Calculator(double Summand1, double Summand2);
static object CalculatorSum(Calculator c) => 
    Markdown($""**Sum**: {c.Summand1 + c.Summand2}"");

Mesh.Edit(new Calculator(1,2), CalculatorSum)
";

client.Post(
    new SubmitCodeRequest(Code) { Id = "Area" },
    o => o.WithTarget(new KernelAddress())
);

Features

  • Remote kernel execution through mesh
  • Interactive data processing
  • Real-time UI updates
  • State management across kernel sessions
  • Integration with MeshWeaver layout system

Integration

  • Works with .NET Interactive
  • Compatible with both monolithic and Orleans hosting
  • Supports mesh message routing
  • Integrates with MeshWeaver layout system

See Also

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