Hello, I want to be able to customize the html code of the ConfirmationComponent, so this doesn't help.
Hello, thank you for your reply. However, I had to use the IServiceCollection.Replace
method instead of Dependency
attribute.
Here's my working code :
MyIdentitySessionDynamicClaimsPrincipalContributor.cs
public class MyIdentitySessionDynamicClaimsPrincipalContributor : IdentitySessionDynamicClaimsPrincipalContributor
{
public override Task ContributeAsync(AbpClaimsPrincipalContributorContext context)
{
...
}
}
MyModule.cs
public class MyModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
...
context.Services.Replace(
ServiceDescriptor.Transient<
IdentitySessionDynamicClaimsPrincipalContributor,
MyIdentitySessionDynamicClaimsPrincipalContributor
>());
}
}