示例#1
0
        public static MetricLogger CreateLogger(
            Context context,
            string?monitoringAccount,
            string logicalNameSpace,
            string metricName,
            bool addDefaultDimensions,
            IEnumerable <Dimension> dimensions)
        {
#if MICROSOFT_INTERNAL
            return(WindowsMetricLogger.Create(context, monitoringAccount, logicalNameSpace, metricName, addDefaultDimensions, dimensions));
#else
            return(NoOpMetricLogger.Instance);
#endif
        }
示例#2
0
        public static void InitializeMdmDefaultDimensions(Context context, List <DefaultDimension> defaultDimensions)
        {
#if MICROSOFT_INTERNAL
            WindowsMetricLogger.InitializeDefaultDimensions(context, defaultDimensions);
#endif
        }