From e4b2927a13e27f4d6018df66b84eb52ca3b6593b Mon Sep 17 00:00:00 2001 From: Aaron Stannard Date: Thu, 14 Nov 2024 13:50:46 -0600 Subject: [PATCH] Added Petabridge.Cmd (#156) --- Directory.Packages.props | 2 ++ src/DrawTogether/DrawTogether.csproj | 2 ++ src/DrawTogether/Program.cs | 13 ++++++++++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index a2a9046..4ea47d6 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -15,6 +15,8 @@ + + diff --git a/src/DrawTogether/DrawTogether.csproj b/src/DrawTogether/DrawTogether.csproj index c156dc7..2ffe154 100644 --- a/src/DrawTogether/DrawTogether.csproj +++ b/src/DrawTogether/DrawTogether.csproj @@ -42,6 +42,8 @@ + + diff --git a/src/DrawTogether/Program.cs b/src/DrawTogether/Program.cs index d250c02..cf1411c 100644 --- a/src/DrawTogether/Program.cs +++ b/src/DrawTogether/Program.cs @@ -8,6 +8,9 @@ using DrawTogether.Email; using Microsoft.AspNetCore.ResponseCompression; using MudBlazor.Services; +using Petabridge.Cmd.Cluster; +using Petabridge.Cmd.Cluster.Sharding; +using Petabridge.Cmd.Host; // get ASP.NET Environment var env = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Development"; @@ -58,9 +61,13 @@ builder.Services.Configure(options => options.LowercaseUrls = true); builder.Services.ConfigureAkka(builder.Configuration, (configurationBuilder, provider) => -{ - -}); + { + configurationBuilder.AddPetabridgeCmd(cmd => + { + cmd.RegisterCommandPalette(ClusterCommands.Instance); + cmd.RegisterCommandPalette(ClusterShardingCommands.Instance); + }); + }); builder.Services.AddDrawTogetherOtel();