示例#1
0
        void InitializeDiagnostics(AzureDiagnosticsOptions options)
        {
            Debug.Assert(null != options);

            DiagnosticMonitorConfiguration dmc = DiagnosticMonitor.GetDefaultInitialConfiguration();

            dmc.Logs.ScheduledTransferPeriod = TimeSpan.FromMinutes(options.LogTransferPeriod);
            dmc.Logs.ScheduledTransferLogLevelFilter = options.LogTransferLevel;

            DiagnosticMonitor.Start(options.ConnectionName, dmc);
        }
示例#2
0
        public AzureOptions(AzureStorageOptions storageOptions, AzureAppFabricOptions appFabricOptions, AzureDiagnosticsOptions diagnosticsOptions)
        {
            Debug.Assert(null != storageOptions);
            Debug.Assert(null != appFabricOptions);
            Debug.Assert(null != diagnosticsOptions);

            StorageOptions = storageOptions;
            AppFabricOptions = appFabricOptions;
            DiagnosticsOptions = diagnosticsOptions;
        }