22 lines
558 B
C#
22 lines
558 B
C#
|
using CH.Authority.Services;
|
|||
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
using OpenHarbor.CQRS.Abstractions.Security;
|
|||
|
using PoweredSoft.Module.Abstractions;
|
|||
|
|
|||
|
namespace CH.Authority;
|
|||
|
|
|||
|
public class AuthorityModule : IModule
|
|||
|
{
|
|||
|
public IServiceCollection ConfigureServices(IServiceCollection services)
|
|||
|
{
|
|||
|
services
|
|||
|
.AddScoped<IQueryAuthorizationService, CQAuthorizationService>();
|
|||
|
|
|||
|
services
|
|||
|
.AddScoped<ICommandAuthorizationService, CQAuthorizationService>();
|
|||
|
|
|||
|
services.AddScoped<UserIdentityService>();
|
|||
|
return services;
|
|||
|
}
|
|||
|
}
|