コード例 #1
0
 /// <summary>
 /// Set the current thread execution context
 /// </summary>
 /// <param name="threadContext">Thread context to set</param>
 public static void Set(ThreadContext threadContext)
 {
     _currentContext = threadContext;
 }
コード例 #2
0
        /// <summary>
        /// Get the current thread execution context
        /// </summary>
        public static ThreadContext Get()
        {
            _currentContext = _currentContext ?? new ThreadContext();

            return(_currentContext);
        }