/// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.  The Parameter
        /// property is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            InternetConnectionProfile = NetworkInformation.GetInternetConnectionProfile();

            NetworkUsageStates = new NetworkUsageStates();
            StartTimePicker.Time -= TimeSpan.FromHours(1);
        }
예제 #2
0
		/// <summary>
		/// Gets a list of ConnectivityInterval objects, which indicate the timestamp for when the network connection began, and a time-span for the duration of that connection.
		/// </summary>
		/// <param name="startTime">The start time over which to retrieve data.  Can be no more than 60 days prior to the current time.</param>
		/// <param name="endTime">The end time over which to retrieve data.</param>
		/// <param name="states">The state of the connection profile for which usage data should be returned.</param>
		/// <returns>When the method completes, it returns a list of ConnectivityInterval objects, which indicate the start time and duration for the current or prior connections.</returns>
		public IAsyncOperation<IReadOnlyList<ConnectivityInterval>> GetConnectivityIntervalsAsync(DateTimeOffset startTime, DateTimeOffset endTime, NetworkUsageStates states)
		{
			throw new NotImplementedException();
		}
예제 #3
0
		/// <summary>
		/// Gets a list of the estimated data traffic and connection duration over a specified period of time, for a specific network usage state.
		/// </summary>
		/// <param name="startTime">The start time over which to retrieve data.  Can be no more than 60 days prior to the current time.  If the specified granularity is PerMinute, the start time can be no more than 120 minutes prior to the current time.</param>
		/// <param name="endTime">The end time over which to retrieve data.</param>
		/// <param name="granularity">The desired granularity of the returned usage statistics.  Each elements in the list corresponds to the network usage per the specified granularity, e.g., usage per hour.</param>
		/// <param name="states">The state of the connection profile for which usage data should be returned.</param>
		/// <returns>When the method completes, it returns a list of NetworkUsage objects, which indicate the sent and received values, in bytes, and the total amount of time the profile was connected during the corresponding time interval.</returns>
		public IAsyncOperation<IReadOnlyList<NetworkUsage>> GetNetworkUsageAsync(DateTimeOffset startTime, DateTimeOffset endTime, DataUsageGranularity granularity, NetworkUsageStates states)
		{
			throw new NotImplementedException();
		}
예제 #4
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.  The Parameter
        /// property is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            InternetConnectionProfile = NetworkInformation.GetInternetConnectionProfile();

            NetworkUsageStates = new NetworkUsageStates();
        }