Open GoogleCodeExporter opened 9 years ago
I can see how this might be confusing. Most of the session properties are lazy
loaded, which is where this originates, though it's rarely a problem when
GetSessions() is called. How are you using GetSession() in your app? (Or, how
would a solution to this make your life easier?)
Original comment by danports
on 14 Sep 2012 at 2:51
I see, the lazy loading is causing the problem.
I use Cassia in the following situation:
The ServiceBase class provides methods to receive session notification events.
When a sessionlogoff event or a remote disconnect event is received it may be
possible that the session is at this point already gone. Especially when the
server is under heavy load the event gets called too late and then I get an
exception when I try to retrieve information about the session using Cassia.
However, there is no sense in returning an instance of a
TerminalServicesSession when there is no session at all!
Original comment by surf...@gmail.com
on 14 Sep 2012 at 8:21
Original issue reported on code.google.com by
surf...@gmail.com
on 13 Sep 2012 at 2:12