SimpleSyncProvider Class
Represents a simple provider that is used to synchronize a replica. You will typically extend FullEnumerationSimpleSyncProvider or AnchorEnumerationSimpleSyncProvider.
Microsoft.Synchronization.SyncProvider
Microsoft.Synchronization.SimpleProviders.SimpleSyncProvider
Microsoft.Synchronization.SimpleProviders.AnchorEnumerationSimpleSyncProvider
Microsoft.Synchronization.SimpleProviders.FullEnumerationSimpleSyncProvider
Assembly: Microsoft.Synchronization.SimpleProviders (in Microsoft.Synchronization.SimpleProviders.dll)
The SimpleSyncProvider type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Configuration | When overridden in a derived class, gets a KnowledgeSyncProviderConfiguration object that represents configuration information for a provider, such as the conflict resolution policy. |
![]() | DestinationCallbacks | When overridden in a derived class, gets a SyncCallbacks object that is used to dispatch a synchronization event. |
![]() | IdFormats | When overridden in a derived class, gets a SyncIdFormatGroup object that represents the format of replica and item IDs. |
![]() | MetadataSchema | When overridden in a derived class, gets an ItemMetadataSchema object that represents the metadata schema for an item. |
![]() | ProviderVersion | When overridden in a derived class, gets the version number for the simple provider. |
| Name | Description | |
|---|---|---|
![]() | BeginSession | When overridden in a derived class, called by the Sync Framework runtime at the start of each session. |
![]() | DeleteItem | When overridden in a derived class, called by the Sync Framework runtime to delete an item from the destination store. |
![]() | EndSession | When overridden in a derived class, called by the Sync Framework runtime at the end of each session unless a session is terminated because of an exception. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetMetadataStore | When overridden in a derived class, called by the Sync Framework runtime to return a MetadataStore object for a replica. |
![]() | GetType | (Inherited from Object.) |
![]() | InsertItem | When overridden in a derived class, called by the Sync Framework runtime to insert an item into the destination store. |
![]() | LoadChangeData | When overridden in a derived class, called by the Sync Framework runtime to load the change data for the item with the specified key. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | OnChangeDetectionCompleted | When overridden in a derived class, raises the ChangeDetectionCompleted event. |
![]() | OnItemConflicting | When overridden in a derived class, raises the ItemConflicting event. |
![]() | OnItemConstraint | When overridden in a derived class, raises the ItemConstraint event. |
![]() | OnMetadataStoreInitialized | When overridden in a derived class, raises the MetadataStoreInitialized event. |
![]() | ToString | (Inherited from Object.) |
![]() | UpdateItem | When overridden in a derived class, called by the Sync Framework runtime to update an item in the destination store. |
| Name | Description | |
|---|---|---|
![]() | ChangeDetectionCompleted | Occurs when change detection is complete for a source provider. |
![]() | ItemConflicting | Occurs when Sync Framework detects that an item being processed is involved in a concurrency conflict. |
![]() | ItemConstraint | Occurs when Sync Framework detects that an item being processed is involved in a constraint conflict. |
![]() | MetadataStoreInitialized | Occurs when the metadata store that is associated with a provider is initialized. |
The simple provider API is designed primarily for two types of replicas:
Replicas that do not support any kind of change tracking. This type of replica uses a full enumeration provider (FullEnumerationSimpleSyncProvider), which enumerates all items from the source replica every time synchronization occurs.
Replicas that support anchor-based change tracking. This type of replica uses an anchor-based provider (AnchorEnumerationSimpleSyncProvider), which enumerates the items from the source replica that changed after a specific anchor was set, which is typically a point in time.
For more information about simple providers, see How to: Create a Managed Simple Provider. For more information about custom providers in general, see Custom Provider Fundamentals, especially the section "Deciding Between a Simple Provider and a Standard Provider".
