better naming.
This commit is contained in:
parent
20df5ce79d
commit
5292dfde52
@ -38,8 +38,8 @@ namespace Demo
|
|||||||
services.AddPoweredSoftCQRS();
|
services.AddPoweredSoftCQRS();
|
||||||
services
|
services
|
||||||
.AddControllers()
|
.AddControllers()
|
||||||
.AddPoweredSoftQueryController()
|
.AddPoweredSoftQueries()
|
||||||
.AddPoweredSoftCommandController()
|
.AddPoweredSoftCommands()
|
||||||
.AddFluentValidation();
|
.AddFluentValidation();
|
||||||
|
|
||||||
services.AddSwaggerGen();
|
services.AddSwaggerGen();
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user