mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
41e894cd42
2e is hidden behind url navigation hiding, so hoping that nobody found it yet. Note: DB migration make this commit a bit risky!
18 lines
820 B
C#
18 lines
820 B
C#
using Kemkas.Web.Services.Identity;
|
|
using Kemkas.Web.Services.Shared;
|
|
|
|
namespace Kemkas.Web.Services.FirstEdition.Character;
|
|
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
public static IServiceCollection AddCharacterServices(this IServiceCollection serviceCollection)
|
|
{
|
|
serviceCollection.AddScoped<ICurrentUserService, CurrentUserService>();
|
|
|
|
serviceCollection.AddTransient<ICharacterValidationService, CharacterValidationService>();
|
|
serviceCollection.AddTransient<ICharacter1EDtoToDbModelService, Character1EDtoToDbModelService>();
|
|
serviceCollection.AddTransient<ICharacterDbModelToDtoService, CharacterDbModelToDtoService>();
|
|
serviceCollection.AddScoped<ICharacterPersistenceService, CharacterPersistenceService>();
|
|
return serviceCollection;
|
|
}
|
|
} |