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 @@ - - + +