Example #1
0
 /// <summary>
 /// Calls the <see cref="IRepository.SetSyncService"/> on the registered repositories
 /// </summary>
 /// <param name="syncService">The sync service to use</param>
 /// <param name="sendSyncRequests">if set to true the repositories will send sync requests when insert, edit and delete</param>
 public override void SetSyncService(IRepositorySyncService syncService, bool sendSyncRequests = true)
 {
     base.SetSyncService(syncService, sendSyncRequests);
     foreach (var repo in _repositories.Values)
     {
         repo.SetSyncService(_syncService, sendSyncRequests);
     }
 }
 /// <inheritdoc />
 public virtual void SetSyncService(IRepositorySyncService syncService, bool sendSyncRequests = true)
 {
     _syncService = syncService;
 }
Example #3
0
 /// <inheritdoc />
 public virtual void SetSyncService(IRepositorySyncService syncService, bool sendSyncRequests = true)
 {
     _syncService              = syncService;
     _sendSyncRequests         = sendSyncRequests;
     syncService.SyncReceived += SyncServiceSyncReceived;
 }