public AptkAmaLocalTableService(IAptkAmaLocalStorePluginConfiguration localStoreConfiguration, IMobileServiceLocalStore store, IMobileServiceSyncTable <T> syncTable) { _localStoreConfiguration = localStoreConfiguration; _store = store; _syncTable = syncTable; }
public AptkAmaLocalStoreService(string rootPath, IAptkAmaLocalStorePluginConfiguration localStoreConfiguration, IAptkAmaDataService dataService) { _rootPath = rootPath; _localStoreConfiguration = localStoreConfiguration; _configuration = ((AptkAmaDataService)dataService).Configuration; _client = ((AptkAmaDataService)dataService).Client; Initialize(); }
public static void Init(IAptkAmaLocalStorePluginConfiguration localStoreConfiguration) { #if PORTABLE throw new ArgumentException("This functionality is not implemented in the portable version of this assembly. You should reference the NuGet package from your main application project in order to reference the platform-specific implementation."); #elif __IOS__ SQLitePCL.CurrentPlatform.Init(); _rootPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); #elif __ANDROID__ _rootPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); #else _rootPath = Windows.Storage.ApplicationData.Current.LocalFolder.Path; #endif if (localStoreConfiguration == null) { localStoreConfiguration = new AptkAmaLocalStorePluginConfiguration(string.Empty); } _localStoreConfiguration = localStoreConfiguration; }