Example #1
0
 public TagScope(ITagThreadContext threadContext, TagScope parentTagScope)
     : this( threadContext )
 {
     _parentTagScope = parentTagScope;
     GenerateThreadCorrelationId(parentTagScope.ThreadCorrelationId);
     _inheritedTags = new TagReadonlyCollection(parentTagScope._effectiveTags);
     _effectiveTags = new TagEffectiveCollection(_inheritedTags, _tags);
 }
Example #2
0
        TagScope(ITagThreadContext threadContext)
        {
            _builtInTags = new TagCollection();
            _builtInTagsAsReadonlyCollection = new TagReadonlyCollection(_builtInTags);

            _threadContext = threadContext;
            GenerateThreadCorrelationId(null);   // null = not parent correlation ID.
            _tags.Changed += OnTagsChanged;
        }
Example #3
0
 public TagScope(ITagThreadContext threadContext, TagScope parentTagScope, IDictionary <string, string> tags)
     : this(threadContext, parentTagScope)
 {
     AddOrReplaceTags(tags);
 }
Example #4
0
 public TagScope(ITagThreadContext threadContext, ITagReadonlyCollection applicationScopeTags, IDictionary <string, string> tags)
     : this(threadContext, applicationScopeTags)
 {
     AddOrReplaceTags(tags);
 }
Example #5
0
 public TagScope(ITagThreadContext threadContext, ITagReadonlyCollection applicationScopeTags)
     : this( threadContext )
 {
     _inheritedTags = new TagReadonlyCollection(applicationScopeTags);
     _effectiveTags = new TagEffectiveCollection(_inheritedTags, _tags);
 }