Skip to content

Commit

Permalink
📝 Comments in the Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hona committed Mar 14, 2024
1 parent 57647e0 commit 70aeba3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/VerticalSliceArchitectureTemplate/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
var appAssembly = Assembly.GetExecutingAssembly();
var builder = WebApplication.CreateBuilder(args);

// Common
builder.Services.AddEfCore();
builder.Services.AddMediatR(configure => configure.RegisterServicesFromAssemblyContaining<Program>());

// Host
builder.Services.AddMediatR(configure => configure.RegisterServicesFromAssemblyContaining<Program>());
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();

Expand Down

0 comments on commit 70aeba3

Please sign in to comment.