Tessellate.SDK 1.0.43-preview

Suggested Alternatives

Tessellate

Additional Details

You want the other one

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

Tessellate.Service

The main entry point for the Tessellate microservice framework.

Installation

dotnet add package Tessellate.SDK
dotnet add package Tessellate.Messaging.RabbitMq

Quick start

1. Define your service

public class MyService : ITessellate
{
    public void RegisterServices(IServiceCollection services)
    {
        // Register your custom services here
    }
}

2. Bootstrap in Program.cs

await TessellateService<MyService>
    .Initialise()
    .WithModule<RabbitMqModule>() // Optional, but it's not a microservice without an AMQP transport!
    .Run();

That's it. Any IConsumer<T> in the assembly is discovered and wired up automatically.

Sending messages

Inject IPublisher wherever you need to send:

public class MyConsumer(IPublisher publisher) : IConsumer<TriggerReport>
{
    public async Task Consume(TriggerReport message)
    {
        await publisher.Publish(new ReportGenerated(message.ReportId));
    }
}

Consuming messages

public class ReportGeneratedConsumer : IConsumer<ReportGenerated>
{
    public async Task Consume(ReportGenerated message)
    {
        // handle the message
    }
}

No registration required — the framework discovers it automatically.

Background services

public class HealthCheckService : IRecurringBackgroundService
{
    public int IntervalMs => 30_000;

    public async Task ExecuteAsync()
    {
        // runs every 30 seconds
    }
}

Register it on the builder:

await TessellateService<MyService>
    .Initialise()
    .WithModule<RabbitMqModule>()
    .AddBackgroundService<HealthCheckService>()
    .Run();

Startup hooks

public class MyStartupHook(MyDbContext db) : IStartupHook
{
    public async Task OnStartup()
    {
        await db.Database.MigrateAsync();
    }
}

Register in your service module:

services.AddScoped<IStartupHook, MyStartupHook>();

Configuration

Configuration is read from the standard .NET configuration stack (appsettings.json, environment variables, etc). Access it via ISettings:

public class MyConsumer(ISettings settings) : IConsumer<MyMessage>
{
    public Task Consume(MyMessage message)
    {
        var value = settings["MySection:MyKey"];
    }
}
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