Ejemplo n.º 1
0
 /// <summary>Removes the top context from this stack.</summary>
 /// <returns>The message in the context that was removed from the top of this stack.</returns>
 public string Pop()
 {
     return(Context.Pop(null));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Remove all items from nested logical thread context
 /// </summary>
 public void Clear()
 {
     Context.Clear();
 }
Ejemplo n.º 3
0
 /// <summary>Pushes a new context message into this stack.</summary>
 /// <param name="text">The new context message text.</param>
 /// <returns>
 /// An <see cref="T:System.IDisposable" /> that can be used to clean up the context stack.
 /// </returns>
 public IDisposable Push(string text)
 {
     return(Context.Push(text));
 }