In Myclass I have 4 properties: Environment, DataStore, Session and User.
I call 2 static methods from constructor:
InitEnv -> initializes DataStore and Environment
InitSession -> initializes Session and User
Seems it should work fine, however when another user logins InitSession should be called again...
Question:
1) Is static constructor called once per user session or is for all users. When is it called, when appstarts or when session starts?
2) Is there a way to automaticly call it after user logins? Maybe by using delagates???
I call 2 static methods from constructor:
InitEnv -> initializes DataStore and Environment
InitSession -> initializes Session and User
Seems it should work fine, however when another user logins InitSession should be called again...
Question:
1) Is static constructor called once per user session or is for all users. When is it called, when appstarts or when session starts?
2) Is there a way to automaticly call it after user logins? Maybe by using delagates???