Ejemplo n.º 1
0
 public async void OnAppear()
 {
     _messagingService.Subscribe <ConnectivityChangedMessage>(this, OnConnectivityChange);
     _appAnalyticsProvider.AddUserInformationInAnalytics("*****@*****.**", "Test", "Test User");
     _appAnalyticsProvider.SendViewInformation("FirstView", DateTime.UtcNow);
     _appAnalyticsProvider.SendApiCallInformation("www.google.co.in", HttpMethod.Post, DateTime.UtcNow);
 }
Ejemplo n.º 2
0
        public async void OnAppear()
        {
            Logger.Start(new { Data = "ViewModel OnAppear Started" }, new[] { LoggerConstants.UiAction });
            Logger.Info("OnAppear", new { Test = "TestData" }, new[] { LoggerConstants.UiAction });
            Logger.Warning("Warning Message", new { Data = "Warning Data" }, new[] { LoggerConstants.UiAction });
            Logger.Error("Some Error Message", new { Error = "Some Error" }, new[] { LoggerConstants.UiAction });
            Logger.Exception(new Exception("Some Exception Message"), new[] { LoggerConstants.UnhandledException });

            _messagingService.Subscribe <ConnectivityChangedMessage>(this, OnConnectivityChange);
            _messagingService.Subscribe <NetworkStatusChangedMessage>(this, OnNetworkStatusChanged);

            _appAnalyticsProvider.AddUserInformationInAnalytics("*****@*****.**", "Test", "Test User");
            _appAnalyticsProvider.SendViewInformation("FirstView", DateTime.UtcNow);
            _appAnalyticsProvider.SendApiCallInformation("www.google.co.in", HttpMethod.Post, DateTime.UtcNow);
            Logger.End(null, new { Data = "ViewModel OnAppear Ended" }, new[] { LoggerConstants.UiAction });
        }