Is ServerSession.Current thread safe?

0 votes
asked Mar 7, 2018 by Paula (290 points)


The scenario is: collecting logs from a FileServer with Application Insights. Where applicable, we would like to include information such as UserName & SessionId with Microsoft.ApplicationInsights.Extensibility.ITelemetryInitializer.

And the question is: can we rely on ServerSession.Current when multiple sessions are active?


1 Answer

0 votes
answered Mar 7, 2018 by Lukas Pokorny (128,250 points)

Yes, ServerSession.Current is thread safe and can be safely used when in scenarios with multiple sessions.