Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static void SetupAutoUpdate(this MainWindowVmBase vm, string fileKey, string deploymentKey, string instrumentationKey)
 {
     _vChkr             = CreateWatcher(deploymentKey, instrumentationKey);
     _fileKey           = fileKey;
     vm.OnWindowHidden += Vm_OnWindowHidden;
 }