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());
}
}