public DAL(IsolatedStorageOfflineContext context , String appName , String language , String userName , String userPassword , String configName , String configVersion , IDictionary <string, string> deviceInfo , ProgressDelegate p , Func <Uri, CacheControllerBehavior, AsyncWorkerManager, CacheRequestHandler> chacheRequestFactory) { this.appName = appName; this.language = language; this.configName = configName; this.configVersion = configVersion; this.onProgress = p; this.context = context; this.context.LoadCompleted += context_LoadCompleted; this.context.CacheController.SetCacheRequestFactory(chacheRequestFactory); this.context.CacheController.RefreshCompleted += CacheController_RefreshCompleted; this.context.CacheController.ControllerBehavior.Credentials = new System.Net.NetworkCredential(userName, userPassword); this.context.CacheController.ControllerBehavior.ConfigName = this.configName; this.context.CacheController.ControllerBehavior.ConfigVersion = this.configVersion; this.context.CacheController.ControllerBehavior.CoreVersion = CoreInformation.CoreVersion; this.context.CacheController.ControllerBehavior.ReadProgressCallback = ReadProgressCallback; this.context.CacheController.ControllerBehavior.DeviceInfo = deviceInfo; //this.context.CacheController.ControllerBehavior.AddScopeParameters("Outlet","{A507956F-D135-4E8A-BD7F-14B54AC1E95C}"); }
public SQLiteCacheData(IsolatedStorageSchema schema, IsolatedStorageOfflineContext context) { // Collections = new Dictionary<EntityType, IsolatedStorageCollection>(); SyncConflicts = new List <SyncConflict>(); SyncErrors = new List <SyncError>(); CreateCollections(schema, context); }
private void CreateCollections(IsolatedStorageSchema schema, IsolatedStorageOfflineContext context) { // Type collectionType = typeof(IsolatedStorageCollection<>); // foreach (EntityType t in schema.Collections) // { // // CreateInstance the generic type for the type in the collection. // Type generic = collectionType.MakeGenericType(t); // IsolatedStorageCollection collection = (IsolatedStorageCollection)Activator.CreateInstance(generic, context); // Collections[t] = collection; // } }
public SQLiteStorageHandler(IsolatedStorageOfflineContext ctx, IsolatedStorageSchema schema, string cachePath, SymmetricAlgorithm encryptionAlgorithm) { _context = ctx; _schema = schema; _cachePath = cachePath; _encryptionAlgorithm = encryptionAlgorithm; _anchor = null; _knownTypes = new List <EntityType> { // new EntityType(typeof (SyncConflict)), // new EntityType(typeof (SyncError)) }; AddKnownTypes(); }
public SQLiteCacheData Load(IsolatedStorageOfflineContext context) { return(new SQLiteCacheData(_schema, context)); }
public void AddUploadChanges(byte[] anchor, IEnumerable <Conflict> conflicts, IEnumerable <IsolatedStorageOfflineEntity> updatedItems, IsolatedStorageOfflineContext context) { }
private void ClearSyncConflict(SyncConflict syncConflict, IsolatedStorageOfflineContext context) { }
public void AddSerializedError(SyncError error, IsolatedStorageOfflineContext context) { }
public void AddErrors(IEnumerable <SyncError> errors, IsolatedStorageOfflineContext context) { }
public void AddSerializedConflict(SyncConflict conflict, IsolatedStorageOfflineContext context) { }
public void AddConflicts(IEnumerable <SyncConflict> conflicts, IsolatedStorageOfflineContext context) { }
public ProxyCollection(IEnumerable <T> source, IsolatedStorageOfflineContext context) { _collection = source; _context = context; }