0 votes
by (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
by (147k points)

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