コード例 #1
0
 public EventDetailsViewModel(ILocalStorageService localStorageService, INetworkConnectionService networkConnectionService, IMessageDialogService messageDialogService, IEventService eventService)
 {
     _localStorageService = localStorageService;
     _networkConnectionService = networkConnectionService;
     _messageDialogService = messageDialogService;
     _eventService = eventService;
 }
コード例 #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;
 }
コード例 #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();
        }