示例#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);
 }
示例#2
0
        TagScope(ITagThreadContext threadContext)
        {
            _builtInTags = new TagCollection();
            _builtInTagsAsReadonlyCollection = new TagReadonlyCollection(_builtInTags);

            _threadContext = threadContext;
            GenerateThreadCorrelationId(null);   // null = not parent correlation ID.
            _tags.Changed += OnTagsChanged;
        }
示例#3
0
 public TagScope(ITagThreadContext threadContext, ITagReadonlyCollection applicationScopeTags)
     : this( threadContext )
 {
     _inheritedTags = new TagReadonlyCollection(applicationScopeTags);
     _effectiveTags = new TagEffectiveCollection(_inheritedTags, _tags);
 }