Is ServerSession.Current thread safe?

0 votes
asked Mar 7 by Paula (220 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 by Lukas Pokorny (90,170 points)

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