/// <summary> /// Creates a new <see cref="Tag"/> from the given key and value. /// </summary> /// <param name="key">The tag's key.</param> /// <param name="value">The tag's value.</param> /// <returns><see cref="Tag"/>.</returns> public static Tag Create(TagKey key, TagValue value) { return(new Tag(key, value)); }
public abstract ITagContextBuilder Remove(TagKey key);
/// <summary> /// Initializes a new instance of the <see cref="Tag"/> class with the key and value. /// </summary> /// <param name="key">Key name for the tag.</param> /// <param name="value">Value associated with the key name.</param> internal Tag(TagKey key, TagValue value) { this.Key = key ?? throw new ArgumentNullException(nameof(key)); this.Value = value ?? throw new ArgumentNullException(nameof(value)); }
public abstract ITagContextBuilder Put(TagKey key, TagValue value);