| | | 1 | | using Elsa.Identity.Contracts; |
| | | 2 | | using Elsa.Identity.Entities; |
| | | 3 | | using JetBrains.Annotations; |
| | | 4 | | using Microsoft.Extensions.DependencyInjection; |
| | | 5 | | |
| | | 6 | | namespace Elsa.Persistence.EFCore.Modules.Identity; |
| | | 7 | | |
| | | 8 | | /// <summary> |
| | | 9 | | /// Base class for identity persistence features. |
| | | 10 | | /// This is not a standalone shell feature - use provider-specific features. |
| | | 11 | | /// </summary> |
| | | 12 | | [UsedImplicitly] |
| | | 13 | | public abstract class EFCoreIdentityPersistenceShellFeatureBase : PersistenceShellFeatureBase<IdentityElsaDbContext> |
| | | 14 | | { |
| | | 15 | | protected override void OnConfiguring(IServiceCollection services) |
| | | 16 | | { |
| | 0 | 17 | | services.AddScoped<IUserStore, EFCoreUserStore>(); |
| | 0 | 18 | | services.AddScoped<IApplicationStore, EFCoreApplicationStore>(); |
| | 0 | 19 | | services.AddScoped<IRoleStore, EFCoreRoleStore>(); |
| | 0 | 20 | | AddEntityStore<User, EFCoreUserStore>(services); |
| | 0 | 21 | | AddEntityStore<Application, EFCoreApplicationStore>(services); |
| | 0 | 22 | | AddEntityStore<Role, EFCoreRoleStore>(services); |
| | 0 | 23 | | } |
| | | 24 | | } |