예제 #1
0
 public PushNotificationSubscriptionService(
     ISettingsDataStore settingsStore,
     IPushNotificationSubscriber pushSubscriber)
 {
     _settingsStore  = settingsStore;
     _pushSubscriber = pushSubscriber;
 }
예제 #2
0
 public NotificationService(
     ISettingsDataStore settingsStore,
     IEnumerable <INotificationSender> senders,
     INotificationHistoryDataStore historyStore,
     IMapper mapper) : base(mapper)
 {
     _settingsStore = settingsStore;
     _senders       = senders;
     _historyStore  = historyStore;
 }
예제 #3
0
        async Task Reinitialize()
        {
            var settingsDataStore = ServiceLocator.Instance.Get <ISettingsDataStore>();
            var testEnvironment   = settingsDataStore.TestEnvironment;

            App.Initialize(settingsDataStore.TestEnvironment);

            SettingsDataStore = ServiceLocator.Instance.Get <ISettingsDataStore>();
            SettingsDataStore.TestEnvironment = testEnvironment;
            SettingsDataStore.FirstAppLaunch  = true;

            var dataStore = ServiceLocator.Instance.Get <IVplanDataStore>();
            await dataStore.Load();

            await dataStore.Refresh();

            InvokeOnMainThread(InitializeView);
        }
예제 #4
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            AppCenter.Start(Secrets.IOS_APP_CENTER_SECRET, typeof(Analytics), typeof(Crashes));
            BackgroundFetchHandler.Setup();

            App.Initialize(false);
            SettingsDataStore = ServiceLocator.Instance.Get <ISettingsDataStore>();

            InitializeView();

            var dataStore = ServiceLocator.Instance.Get <IVplanDataStore>();

            Task.Run(() =>
            {
                dataStore.Load();
            });

            #if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
            #endif

            return(true);
        }
예제 #5
0
 public SettingsService(ISettingsDataStore store, IMapper mapper) : base(mapper)
 {
     _store = store;
 }
 public InMemoryCachedSettingsDataStore(ISettingsDataStore originalDataStore, IMemoryCache cache, InMemoryCachingOptions options)
 {
     _originalDataStore = originalDataStore;
     _cache             = cache;
     _options           = options;
 }