private void NetworkStateMonitorOnMeasurementCollected(object sender, NetworkSnapshotEventArgs args)
        {
            IVyprVPNController    vyprVPNController = ServiceLocatorExtensions.ResolveType <IVyprVPNController>(ServiceLocator.get_Default(), null);
            ThroughputMeasurement throughputMeasurement;

            if (vyprVPNController.ConnectionStatus == 4)
            {
                throughputMeasurement = new ThroughputMeasurement(args.get_TimeOfSnapshot(), args.get_Bandwidths()[3], vyprVPNController.ConnectionStatus);
            }
            else
            {
                throughputMeasurement = new ThroughputMeasurement(args.get_TimeOfSnapshot(), args.get_Bandwidths()[1], vyprVPNController.ConnectionStatus);
            }
            if (vyprVPNController.KillSwitchActive)
            {
                this.ThroughputMeasurements.Enqueue(new ThroughputMeasurement(DateTime.Now, new BandwidthSnapshot(), vyprVPNController.ConnectionStatus));
            }
            else
            {
                this.ThroughputMeasurements.Enqueue(throughputMeasurement);
            }
            while (this.ThroughputMeasurements.Count > 1000)
            {
                ThroughputMeasurement throughputMeasurement2;
                if (!this.ThroughputMeasurements.TryDequeue(out throughputMeasurement2))
                {
                    NetworkModel.logger.Log(3, "Could not dequeue throughput measurement after queue exceeded maximum capacity. Will try to dequeue again at next iteration.");
                    break;
                }
                throughputMeasurement2 = null;
            }
            this.UpstreamRate   = throughputMeasurement.Snapshot.get_UpstreamBitsPerSecond();
            this.DownstreamRate = throughputMeasurement.Snapshot.get_DownstreamBitsPerSecond();
            MessageBase <ThroughputMeasuredMessage, ThroughputMeasurement> .SendWith(throughputMeasurement, null);
        }
        protected override async Task Initialize()
        {
            MessageBase <SetUpdateChangeLogMessage, Uri> .SendWith(this.ReleaseNotesUrl, null);

            await this.< > n__0();
        }
 private void ignoreThisVersion()
 {
     base.VyprVPNController.IgnoreVersionsUpTo(this.TargetVersion);
     MessageBase <CloseUpdatesWindowMessage, bool> .SendWith(true, null);
 }
 private void NewFeatureModal_Closed(object sender, EventArgs e)
 {
     MessageBase <NewFeatureModalClosedWindowMessage, object> .SendWith(this, base.Tag);
 }