public static void SetupTelemetry(this MainWindowVmBase vm, Window win, string instrumentationKey, bool hideOnWindowClose) { AppInsights.StartTracking(instrumentationKey); SetAppEventHandlers(); AppInsights.Post("Telemetry started."); vm.HandleWindowEvents(win, null, hideOnWindowClose); }
public static void SetupAutoUpdate(this MainWindowVmBase vm, string fileKey, string deploymentKey, string instrumentationKey) { _vChkr = CreateWatcher(deploymentKey, instrumentationKey); _fileKey = fileKey; vm.OnWindowHidden += Vm_OnWindowHidden; }