mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 12:42:38 +00:00
fix(agent): silence CS8600 nullable warnings in Office host wiring
#nullable enable: declare officeHost as nullable and make the no-Office onOfficeDoSample fallback a nullable cast. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -353,7 +353,7 @@ namespace AutopilotMonitor.Agent.V2.Core.Orchestration
|
||||
// RegNotifyChangeKeyValue, stop via Process.Exited. No idle polling. Constructed first so
|
||||
// the DO host can share its process-start signal and feed Office DO stats back to it.
|
||||
// Kill-switchable via remote config.
|
||||
OfficeInstallDetectorHost officeHost = null;
|
||||
OfficeInstallDetectorHost? officeHost = null;
|
||||
if (collectors.EnableOfficeInstallDetector)
|
||||
{
|
||||
officeHost = new OfficeInstallDetectorHost(
|
||||
@@ -380,7 +380,7 @@ namespace AutopilotMonitor.Agent.V2.Core.Orchestration
|
||||
intervalSeconds: collectors.DeliveryOptimizationIntervalSeconds,
|
||||
imeHost: _imeLogHost,
|
||||
officeProcessWatcher: officeHost?.ProcessWatcher,
|
||||
onOfficeDoSample: officeHost != null ? officeHost.SubmitDoSample : (Action<Monitoring.Telemetry.Office.OfficeDoSample>)null);
|
||||
onOfficeDoSample: officeHost != null ? officeHost.SubmitDoSample : (Action<Monitoring.Telemetry.Office.OfficeDoSample>?)null);
|
||||
hosts.Add(doHost);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user