private void Initialize()
 {
     DiagnosticsSessionFactory.SetDefaults(Guid.Parse("ebfb4d9d-d5ed-45e5-9f75-e3389bece6fa"), "Inference Classification Agent", "Inference Diagnostics Logs", Path.Combine(ExchangeSetupContext.InstallPath, "Logging\\InferenceClassification"), "Inference_", "InferenceClassificationLogs");
     this.diagnosticsSession = DiagnosticsSession.CreateComponentDiagnosticsSession("InferenceClassificationAgentFactory", null, (long)this.GetHashCode());
     this.CreateClassificationAgentLogger();
     this.CreateClassificationComparisonLogger();
     if (this.isPipelineEnabled)
     {
         Stopwatch stopwatch = new Stopwatch();
         stopwatch.Start();
         PipelineDefinition definition = PipelineDefinition.LoadFromFile(Path.Combine(InferenceClassificationAgentFactory.ExecutingAssemblyLocation, "InferenceClassificationPipelineDefinition.xml"));
         string             text       = "ClassificationPipeline";
         InferenceModel.GetInstance(text).Reset();
         PipelineContext pipelineContext = new PipelineContext();
         pipelineContext.SetProperty <string>(DocumentSchema.PipelineInstanceName, text);
         this.pipeline = new Pipeline(definition, text, pipelineContext, null);
         IAsyncResult asyncResult = this.pipeline.BeginPrepareToStart(null, null);
         this.pipeline.EndPrepareToStart(asyncResult);
         asyncResult = this.pipeline.BeginStart(null, null);
         this.pipeline.EndStart(asyncResult);
         stopwatch.Stop();
         this.diagnosticsSession.LogDiagnosticsInfo(DiagnosticsLoggingTag.Informational, "Pipeline creation timespan: {0} ms", new object[]
         {
             stopwatch.ElapsedMilliseconds
         });
     }
 }
        // Token: 0x06000FCD RID: 4045 RVA: 0x0005D3A0 File Offset: 0x0005B5A0
        public SearchIndexRepairAssistant(DatabaseInfo databaseInfo, LocalizedString name, string nonLocalizedName) : base(databaseInfo, name, nonLocalizedName)
        {
            DiagnosticsSessionFactory diagnosticsSessionFactory = new DiagnosticsSessionFactory();

            this.diagnosticsSession = diagnosticsSessionFactory.CreateComponentDiagnosticsSession("SearchIndexRepairAssistant", ExTraceGlobals.GeneralTracer, (long)this.GetHashCode());
            this.diagnosticsSession.TraceDebug("SearchIndexRepairAssistant: SearchIndexRepairAssistant", new object[0]);
            this.indexRepairLogger       = new IndexRepairLogger();
            this.config                  = new SearchConfig(databaseInfo.Guid);
            this.errorStatisticsProvider = new ErrorStatisticsProvider(this.diagnosticsSession, databaseInfo.Guid, this.config);
        }
 // Token: 0x06001188 RID: 4488 RVA: 0x000666AC File Offset: 0x000648AC
 static InferenceTrainingAssistant()
 {
     DiagnosticsSessionFactory.SetDefaults(Guid.Parse("83AAE9D3-D243-482C-A39E-BFA5BC8F1113"), "InferenceTrainingAssistant", "Inference Diagnostics Logs", Path.Combine(ExchangeSetupContext.InstallPath, "Logging\\InferenceTraining"), "Inference_", "InferenceLogs");
 }