public bool AddContext(string context, IMetricContextRegistry registry) { if (context.IsMissing()) { throw new ArgumentException("Registry Context cannot be null or empty", nameof(context)); } var attached = _contexts.GetOrAdd(context, registry); return(ReferenceEquals(attached, registry)); }
public bool AddContext(string context, IMetricContextRegistry registry) { return(true); }