Skip to content

Commit

Permalink
provide the assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
Hona committed Dec 22, 2023
1 parent 4acf70a commit 5648f77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/VerticalSliceArchitectureTemplate/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System.Reflection;
using VerticalSliceArchitectureTemplate.Kernel;

var appAssembly = Assembly.GetExecutingAssembly();
var builder = WebApplication.CreateBuilder(args);

builder.Services.AddEfCore();
Expand All @@ -10,7 +12,7 @@

builder.Services.AddExceptionHandler<ExceptionHandler.KnownExceptionsHandler>();

builder.Services.ConfigureModules();
builder.Services.ConfigureModules(appAssembly);

var app = builder.Build();

Expand All @@ -22,6 +24,6 @@

app.UseProductionExceptionHandler();

app.RegisterEndpoints();
app.RegisterEndpoints(appAssembly);

app.Run();

0 comments on commit 5648f77

Please sign in to comment.