/// <summary>
 ///  Constructor
 /// </summary>
 public CacheLifecycleManager(
     ILogger <CacheLifecycleManager> logger,
     SyncEntityCache entityCache,
     uSyncEventService eventService)
 {
     this.logger       = logger;
     this.entityCache  = entityCache;
     this.eventService = eventService;
 }
Beispiel #2
0
 public SyncItemFactory(
     SyncEntityCache entityCache,
     SyncTrackerCollection syncTrackers,
     SyncDependencyCollection syncCheckers)
 {
     this.syncTrackers = syncTrackers;
     this.syncCheckers = syncCheckers;
     this.entityCache  = entityCache;
 }
 public SyncValueMapperCollection(
     uSyncConfig uSyncConfig,
     SyncEntityCache entityCache,
     IEnumerable <ISyncMapper> items)
     : base(items)
 {
     EntityCache    = entityCache;
     CustomMappings = uSyncConfig.Settings.CustomMappings;
 }
Beispiel #4
0
        public SyncValueMapperCollection(
            SyncEntityCache entityCache,
            Func <IEnumerable <ISyncMapper> > items)
            : base(items)
        {
            EntityCache = entityCache;

            // todo, load these from config.
            CustomMappings = new Dictionary <string, string>();
        }
        public CacheLifecycleManager(SyncEntityCache entityCache)
        {
            this.entityCache = entityCache;

            uSyncService.ImportStarting += OnBulkActionComplete;
            uSyncService.ImportComplete += OnBulkActionComplete;

            uSyncService.ReportStarting += OnBulkActionComplete;
            uSyncService.ReportComplete += OnBulkActionComplete;

            uSyncService.ExportStarting += OnBulkActionComplete;
            uSyncService.ExportComplete += OnBulkActionComplete;
        }