Skip to content

fermyon/Aspire.Spin

Repository files navigation

Fermyon.Aspire.Spin

Fermyon.Aspire.Spin adds support for Spin to .NET Aspire.

The project is under active development, so no guarantees of stability or compatibility can be expected - but we still hope you think it's great!

Installation

# Add Fermyon.Aspire.Spin to your .NET Aspire project
dotnet add package Fermyon.Aspire.Spin

Basic Usage

Fermyon.Aspire.Spin contributes extensions to the Aspire.Hosting namespace. Adding an existing Spin App to your DistributedApplicationBuilder is as simple as calling AddSpinApp:

var builder = DistributedApplication.CreateBuilder(args);

builder.AddSpinApp("api-one", "../api-one", 3001)
    .WithOtlpExporter();
builder.Build().Run();

Further Samples

Check out the example folder, it contains a basic sample illustrating how you can design a distributed application using multiple Spin Apps