public static IAptkAmaFileManagementService FileManagementService(this IAptkAmaDataService dataService) { return(_configuration.FileManagementService); }
public AptkAmaLocalStoreService(string rootPath, IAptkAmaLocalStorePluginConfiguration localStoreConfiguration, IAptkAmaDataService dataService) { _rootPath = rootPath; _localStoreConfiguration = localStoreConfiguration; _configuration = ((AptkAmaDataService)dataService).Configuration; _client = ((AptkAmaDataService)dataService).Client; Initialize(); }
/// <summary> /// Push local pending changes to remote Azure tables /// </summary> /// <returns></returns> public static async Task PushAsync(this IAptkAmaDataService dataService, CancellationToken token) { _dataService = dataService; await Instance.PushAsync(token); }
/// <summary> /// Push local pending changes to remote Azure tables /// </summary> /// <returns></returns> public static async Task PushAsync(this IAptkAmaDataService dataService) { _dataService = dataService; await Instance.PushAsync(); }
/// <summary> /// Service to manage local SQLite data /// </summary> /// <typeparam name="T">Data table to manage (model class)</typeparam> /// <returns></returns> public static IAptkAmaLocalTableService <T> LocalTable <T>(this IAptkAmaDataService dataService) where T : ITableData { _dataService = dataService; return(Instance.GetLocalTable <T>()); }
/// <summary> /// Local pending changes waiting for push to remote Azure tables /// </summary> public static long PendingChanges(this IAptkAmaDataService dataService) { _dataService = dataService; return(Instance.PendingOperations); }