public TagScope(ITagThreadContext threadContext, TagScope parentTagScope) : this( threadContext ) { _parentTagScope = parentTagScope; GenerateThreadCorrelationId(parentTagScope.ThreadCorrelationId); _inheritedTags = new TagReadonlyCollection(parentTagScope._effectiveTags); _effectiveTags = new TagEffectiveCollection(_inheritedTags, _tags); }
TagScope(ITagThreadContext threadContext) { _builtInTags = new TagCollection(); _builtInTagsAsReadonlyCollection = new TagReadonlyCollection(_builtInTags); _threadContext = threadContext; GenerateThreadCorrelationId(null); // null = not parent correlation ID. _tags.Changed += OnTagsChanged; }
public TagScope(ITagThreadContext threadContext, ITagReadonlyCollection applicationScopeTags) : this( threadContext ) { _inheritedTags = new TagReadonlyCollection(applicationScopeTags); _effectiveTags = new TagEffectiveCollection(_inheritedTags, _tags); }