From 8f5a201230b2f23184ab79e26ea9329b8f6acd40 Mon Sep 17 00:00:00 2001 From: Cameron <709976+MrSmoke@users.noreply.github.com> Date: Sat, 7 Dec 2024 13:54:47 +1100 Subject: [PATCH] Update CommandRouter to latest rc build --- src/TeaTime.Slack/ServiceCollectionExtension.cs | 3 ++- src/TeaTime.Slack/TeaTime.Slack.csproj | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/TeaTime.Slack/ServiceCollectionExtension.cs b/src/TeaTime.Slack/ServiceCollectionExtension.cs index d5a10ed..220ffa6 100644 --- a/src/TeaTime.Slack/ServiceCollectionExtension.cs +++ b/src/TeaTime.Slack/ServiceCollectionExtension.cs @@ -3,6 +3,7 @@ namespace TeaTime.Slack using System; using System.Reflection; using Client; + using CommandRouter.Extensions; using CommandRouter.Integration.AspNetCore.Extensions; using Common.Features.Orders.Events; using Common.Features.Runs.Events; @@ -25,7 +26,7 @@ public static void AddSlack(this IServiceCollection services, IMvcBuilder mvcBui //Add current assembly controllers mvcBuilder.AddApplicationPart(Assembly); - services.AddCommandRouter(); + services.AddCommandRouterForAssembly(Assembly); // General required services services.TryAddSingleton(TimeProvider.System); diff --git a/src/TeaTime.Slack/TeaTime.Slack.csproj b/src/TeaTime.Slack/TeaTime.Slack.csproj index 15fbff4..cc5310c 100644 --- a/src/TeaTime.Slack/TeaTime.Slack.csproj +++ b/src/TeaTime.Slack/TeaTime.Slack.csproj @@ -10,8 +10,8 @@ - - + +