better naming.

This commit is contained in:
David Lebee 2021-02-02 12:22:58 -05:00
parent 20df5ce79d
commit 5292dfde52
2 changed files with 4 additions and 4 deletions

View File

@ -38,8 +38,8 @@ namespace Demo
services.AddPoweredSoftCQRS(); services.AddPoweredSoftCQRS();
services services
.AddControllers() .AddControllers()
.AddPoweredSoftQueryController() .AddPoweredSoftQueries()
.AddPoweredSoftCommandController() .AddPoweredSoftCommands()
.AddFluentValidation(); .AddFluentValidation();
services.AddSwaggerGen(); services.AddSwaggerGen();

View File

@ -6,7 +6,7 @@ namespace PoweredSoft.CQRS.AspNetCore.Mvc
{ {
public static class MvcBuilderExtensions public static class MvcBuilderExtensions
{ {
public static IMvcBuilder AddPoweredSoftQueryController(this IMvcBuilder builder, Action<QueryControllerOptions> configuration = null) public static IMvcBuilder AddPoweredSoftQueries(this IMvcBuilder builder, Action<QueryControllerOptions> configuration = null)
{ {
var options = new QueryControllerOptions(); var options = new QueryControllerOptions();
configuration?.Invoke(options); configuration?.Invoke(options);
@ -17,7 +17,7 @@ namespace PoweredSoft.CQRS.AspNetCore.Mvc
return builder; return builder;
} }
public static IMvcBuilder AddPoweredSoftCommandController(this IMvcBuilder builder) public static IMvcBuilder AddPoweredSoftCommands(this IMvcBuilder builder)
{ {
var services = builder.Services; var services = builder.Services;
var serviceProvider = services.BuildServiceProvider(); var serviceProvider = services.BuildServiceProvider();