Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Get the current thread execution context
        /// </summary>
        public static ThreadContext Get()
        {
            _currentContext = _currentContext ?? new ThreadContext();

            return(_currentContext);
        }