/// <summary> /// Set the current thread execution context /// </summary> /// <param name="threadContext">Thread context to set</param> public static void Set(ThreadContext threadContext) { _currentContext = threadContext; }
/// <summary> /// Get the current thread execution context /// </summary> public static ThreadContext Get() { _currentContext = _currentContext ?? new ThreadContext(); return(_currentContext); }