Answers for "abp session logged in user"

0

abp session logged in user

[DependsOn(
    typeof(MyAppApplicationModule),
    typeof(MyAppDataModule))]
public class MyConsoleAppModule : AbpModule {

    public override void PreInitialize() {
        // set my IAbpSession implementation
        Configuration.IocManager.RegisterIfNot<IAbpSession, MyAbpSession>(DependencyLifeStyle.Singleton);
    }

    public override void Initialize() {
        IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
    }
}
Posted by: Guest on December-07-2020

Browse Popular Code Answers by Language