Esempio n. 1
0
        public MetricValueOptionsBase EnsureContextLabel(MetricValueOptionsBase options)
        {
            if (options.Context.IsMissing())
            {
                options.Context = _defaultContextLabel;
            }

            return(options);
        }
        // ReSharper disable MemberCanBePrivate.Global
        // ReSharper disable UnusedMethodReturnValue.Global
        public MetricValueOptionsBase EnsureContextLabel(MetricValueOptionsBase options)
        // ReSharper restore UnusedMethodReturnValue.Global
        // ReSharper restore MemberCanBePrivate.Global
        {
            if (options.Context.IsMissing())
            {
                options.Context = _defaultContextLabel;
            }

            return(options);
        }