public PushNotificationSubscriptionService( ISettingsDataStore settingsStore, IPushNotificationSubscriber pushSubscriber) { _settingsStore = settingsStore; _pushSubscriber = pushSubscriber; }
public NotificationService( ISettingsDataStore settingsStore, IEnumerable <INotificationSender> senders, INotificationHistoryDataStore historyStore, IMapper mapper) : base(mapper) { _settingsStore = settingsStore; _senders = senders; _historyStore = historyStore; }
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); }
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); }
public SettingsService(ISettingsDataStore store, IMapper mapper) : base(mapper) { _store = store; }
public InMemoryCachedSettingsDataStore(ISettingsDataStore originalDataStore, IMemoryCache cache, InMemoryCachingOptions options) { _originalDataStore = originalDataStore; _cache = cache; _options = options; }