public EventDetailsViewModel(ILocalStorageService localStorageService, INetworkConnectionService networkConnectionService, IMessageDialogService messageDialogService, IEventService eventService)
 {
     _localStorageService = localStorageService;
     _networkConnectionService = networkConnectionService;
     _messageDialogService = messageDialogService;
     _eventService = eventService;
 }
Beispiel #2
0
 public ViewModelBaseModule(IAnalyticsService analytics, INavigationService navigationService, IAuthenticationService authenticationService, IDialogService dialogService, ICacheEntity cacheEntity, INetworkConnectionService networkConnectionService, IDialogErrorCustomService dialogErrorCustom)
 {
     _analytics                = analytics;
     _navigationService        = navigationService;
     _authenticationService    = authenticationService;
     _dialogService            = dialogService;
     _cacheEntity              = cacheEntity;
     _networkConnectionService = networkConnectionService;
     _dialogErrorCustomService = dialogErrorCustom;
 }
Beispiel #3
0
        protected override void OnStart()
        {
            _network = Container.Resolve <INetworkConnectionService>();
            _authenticationService = Container.Resolve <IAuthenticationService>();

            AppCenter.Start(AppSettings.AppCenter, typeof(Analytics), typeof(Crashes));

            MessagingCenter.Subscribe <ISubscribeMessagingCenter>(this, nameof(UnauthorizedAccessException), async(app) =>
            {
                if (CrossConnectivity.Current.IsConnected)
                {
                    await AuthenticationRun();
                }
            });

            RememberNotificationBuild();

            base.OnStart();
        }