protected override Task OnInitializeAsync(IActivatedEventArgs args) { EventAggregator = new EventAggregator(); var logger = new Logger(EventAggregator); AuthenticationService = new AuthenticationHelper(SessionStateService, logger); Container.RegisterInstance <IAuthenticationService>(AuthenticationService); OfficeService = new HttpGraphService(AuthenticationService, logger); Container.RegisterInstance <INavigationService>(NavigationService); ViewModelLocationProvider.SetDefaultViewModelFactory(CachingFactory); return(base.OnInitializeAsync(args)); }
protected override Task OnInitializeAsync(IActivatedEventArgs args) { EventAggregator = new EventAggregator(); var logger = new Logger(EventAggregator); AuthenticationService = new AuthenticationHelper(SessionStateService, logger); Container.RegisterInstance<IAuthenticationService>(AuthenticationService); OfficeService = new HttpGraphService(AuthenticationService, logger); Container.RegisterInstance<INavigationService>(NavigationService); ViewModelLocationProvider.SetDefaultViewModelFactory(CachingFactory); return base.OnInitializeAsync(args); }