0
amer_op created
hello ,
i have a class in the web.host project, and i need to accsess the TenantId in my class , what is the best practice to injecte AbpSession object in the class constructor ?
4 Answer(s)
-
0
You can take a look at the abp documentation.
https://aspnetboilerplate.com/Pages/Documents/Abp-Session -
0
maliming thank you.
but how to inject it ?
i mean suppose this ->
public myclass(IAbpSession _AbpSession)
{
this.AbpSession = _AbpSession;
}
new myclass(what to do here ?);
do i have to use IOC manager ? or what ?
-
0
Yes, you should use IOC everywhere.
For more framework information, please see related documents https://aspnetboilerplate.com/Pages/Documents/Dependency-Injection -
0
This issue is closed because it has not had recent activity for a long time.