Byrone.Aspire.Temporal 0.1.1

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

<img src="./icon.png" alt="Project icon" width="236"/>

Byrone.Aspire.Temporal

Extensions & helpers for setting up a Temporal resource in Aspire.

Usage

It's recommended to use the byrone2/temporal Docker image, as this will automatically handle setting up the PostgreSQL database and namespace creation.

using Byrone.Aspire.Hosting;
using Byrone.Aspire.Hosting.Temporal;

var builder = DistributedApplication.CreateBuilder(args);

var @namespace = "default";

// Add the Temporal resource with a PostgreSQL database.
// This will add a Docker container to the Aspire app, using the image 'byrone2/temporal'.
var temporal = builder.AddTemporalContainer(new TemporalContainerOptions
{
	Name = "Temporal",
	Namespaces = [@namespace],
	PostgresName = "TemporalPostgres",
	DatabaseName = "TemporalDatabase",
	DatabaseVolumeName = "temporal_postgres",
});

// (optional) Add the Temporal UI container resource.
var temporalUi = builder.AddTemporalUiContainer(temporal, new TemporalUiContainerOptions
{
	Name = "TemporalUi",
	Tag = "latest",
	DefaultNamespace = @namespace,
});

// Add your worker resource. This could be anything you'd like.
var worker = …;

// Adding a reference to the Temporal resource exposes a ConnectionString you can use.
worker.WithReference(temporal)
      .WaitFor(temporal);

var app = …;

app.WithReference(temporal)
   .WaitFor(temporal);
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
0.1.1 104 3/31/2026
0.1.0 103 3/31/2026