Synced
LogSessionContext.Enter
Section titled “LogSessionContext.Enter”
- Enters a nested execution scope whose emitted logs belong to the supplied runtime session.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Logging
Declaration
Section titled “Declaration”public static System.IDisposable Inno.Core.Logging.LogSessionContext.Enter(Inno.Core.Logging.LogSessionId sessionId)Parameters
Section titled “Parameters”Parameter sessionId: The non-empty identifier of the runtime session receiving execution.
Returns
Section titled “Returns”A scope that restores the previous session when disposed in reverse creation order.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when sessionId does not identify a runtime session.