Skip to content

Commit

Permalink
Correct Windows Phone 8.1 Auto Measurement class name and redundant #if.
Browse files Browse the repository at this point in the history
  • Loading branch information
damieng committed Jan 13, 2015
1 parent 674e46f commit 1eaaf47
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Attack Pattern LLC. All rights reserved.
// Copyright (c) Attack Pattern LLC. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Expand All @@ -15,6 +15,7 @@
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
using Windows.ApplicationModel;

namespace CSharpAnalytics
{
Expand All @@ -23,7 +24,7 @@ namespace CSharpAnalytics
/// Either use as-is by calling StartAsync, Attach and StopAsync from your App.xaml.cs or use as a
/// starting point to wire up your own way.
/// </summary>
public class WindowsPhoneAutoMeasurement : BaseAutoMeasurement
public class WindowsPhone81AutoMeasurement : BaseAutoMeasurement
{
private static Frame attachedFrame;

Expand Down Expand Up @@ -152,11 +153,7 @@ private void FrameNavigated(object sender, NavigationEventArgs e)
/// </summary>
/// <param name="sender">Sender of the event.</param>
/// <param name="e">Startup event parameter.</param>
#if WINDOWS_PHONE_APP
private async void ApplicationOnResuming(object sender, object o)
#else
private async void ApplicationOnStartup(object sender, StartupEventArgs e)
#endif
{
await StartRequesterAsync();
}
Expand All @@ -166,7 +163,7 @@ private async void ApplicationOnStartup(object sender, StartupEventArgs e)
/// </summary>
/// <param name="sender">Sender of the event.</param>
/// <param name="e">Empty event information.</param>
private async void ApplicationOnSuspending(object sender, Windows.ApplicationModel.SuspendingEventArgs suspendingEventArgs)
private async void ApplicationOnSuspending(object sender, SuspendingEventArgs suspendingEventArgs)
{
UnhookEvents();
await StopRequesterAsync();
Expand All @@ -178,7 +175,7 @@ private async void ApplicationOnSuspending(object sender, Windows.ApplicationMod
/// </summary>
public static class AutoMeasurement
{
private static readonly WindowsPhoneAutoMeasurement instance = new WindowsPhoneAutoMeasurement();
private static readonly WindowsPhone81AutoMeasurement instance = new WindowsPhone81AutoMeasurement();

public static VisitorStatus VisitorStatus
{
Expand Down

0 comments on commit 1eaaf47

Please sign in to comment.