// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); SfListViewRenderer.Init(); FormsMaterial.Init(); try { var authenticationService = new B2CAuthenticationService(); LoadApplication(new App.App()); //var authenticationService = DependencyService.Get<IAuthenticationService>(); authenticationService.SetParent(null); } catch (Exception ex) { Analytics.TrackEvent(ex.ToString()); } return(base.FinishedLaunching(app, options)); }
/// <summary> /// Subscription Service depends on Authentication Client /// </summary> /// <param name="auth">B2CAuthenticationService</param> public SubscriptionService(B2CAuthenticationService auth) { _authService = auth; }