public async Task Initialize() { try { telemetryClient = new TelemetryClient(); telemetryClient.InstrumentationKey = "23694f6c-53c2-42e2-9427-b7e02cda9c6f"; telemetryClient.Context.Component.Version = Process.GetCurrentProcess().MainModule.FileVersionInfo.FileVersion; telemetryClient.Context.Session.Id = Guid.NewGuid().ToString(); telemetryClient.Context.Device.OperatingSystem = Environment.OSVersion.ToString(); telemetryClient.TrackPageView("Home"); telemetryClient.Flush(); } catch (Exception ex) { Trace.TraceError("Couldn't initialize telemetry: " + ex); } // Check for updates await CheckForUpdates(); SelectedMirrorProvider = MirrorProviders.First(); apps = (await applicationEnumerator.GetInstalledApplications()).ToList(); if (!apps.Any()) { Trace.TraceWarning("No BitTorrent applications found."); return; } foreach (var result in apps) { Trace.TraceInformation("Found app {0} version {1} at {2}", result.Description, result.Version, result.InstallLocation); } }
public async Task Initialize() { SelectedMirrorProvider = MirrorProviders.First(); apps = (await applicationEnumerator.GetInstalledApplications()).ToList(); if (!apps.Any()) { Trace.TraceWarning("No BitTorrent applications found."); return; } foreach (var result in apps) { Trace.TraceInformation("Found app {0} version {1} at {2}", result.Description, result.Version, result.InstallLocation); } }
public async Task Initialize() { progress = new Progress <ProgressModel>(ProgressHandler); // Check for updates await CheckForUpdates(); SelectedMirrorProvider = MirrorProviders.First(); apps = (await applicationEnumerator.GetInstalledApplications()).ToList(); if (!apps.Any()) { Trace.TraceWarning("No BitTorrent applications found."); return; } foreach (var result in apps) { Trace.TraceInformation("Found app {0} version {1} at {2}", result.Description, result.Version, result.InstallLocation); } }