see on GitHub

How to subscribe to synchronization notifications?

In order to be notified about synchronization activity use ForSynchronization to observe synchronization notifications.

Syntax

IObservableWithTask<SynchronizationUpdateNotification> ForSynchronization();

Return Value
IObservableWithTask<SynchronizationUpdateNotification> The observable that allows to add subscriptions to received notifications

Example

IDisposable subscribtion = store
	.Changes()
	.ForSynchronization()
	.Subscribe(notification =>
	{
		if(notification.Direction == SynchronizationDirection.Outgoing)
			return;

		switch (notification.Action)
		{
			case SynchronizationAction.Start:
				// do something
				break;
			case SynchronizationAction.Finish:
				// do something
				break;
		}
	});

Remarks

Information

To get more method overloads, especially the ones supporting delegates, please add Reactive Extensions package to your project.