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: 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"); }