Class SyncSettings
Specifies a set of features to support the Sync(SyncSettings) method.
Inheritance
Inherited Members
Namespace: TimeCockpit.Data
Assembly: TimeCockpit.Data.dll
Syntax
public sealed class SyncSettings
Constructors
SyncSettings()
Initializes a new instance of the SyncSettings class
Declaration
public SyncSettings()
Properties
CurrentDeviceId
Gets or sets the uuid of the current device that is in use
Declaration
public Guid CurrentDeviceId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
CurrentUserAccountUuid
Gets or sets the uuid of the current user
Declaration
public Guid CurrentUserAccountUuid { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
IsInitialSync
Gets or sets a value indicating whether the sync represents an initial synchronization (no deletions/dead handling/target versions).
Declaration
public bool IsInitialSync { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Order
Gets or sets the sync direction
Declaration
[CLSCompliant(false)]
public SyncDirectionOrder Order { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Synchronization.SyncDirectionOrder |
ProgressEventHandler
Gets or sets a event handler that is registered for progress events.
Declaration
[CLSCompliant(false)]
public EventHandler<SyncStagedProgressEventArgs> ProgressEventHandler { get; set; }
Property Value
Type | Description |
---|---|
System.EventHandler<Microsoft.Synchronization.SyncStagedProgressEventArgs> |
ServerContext
Gets or sets the server data context used for sync
Declaration
public DataContext ServerContext { get; set; }
Property Value
Type | Description |
---|---|
DataContext |
StateChangedEventHandler
Gets or sets a event handler that is registered for state changed events.
Declaration
[CLSCompliant(false)]
public EventHandler<SyncOrchestratorStateChangedEventArgs> StateChangedEventHandler { get; set; }
Property Value
Type | Description |
---|---|
System.EventHandler<Microsoft.Synchronization.SyncOrchestratorStateChangedEventArgs> |
SyncContent
Gets or sets the value specifying what to sync
Declaration
public SyncContent SyncContent { get; set; }
Property Value
Type | Description |
---|---|
SyncContent |
Remarks
The default value is ModelAndData
TimeCockpitProgressEventHandler
Gets or sets a event handler that is registered for time cockpit progress events.
Declaration
public EventHandler<TimeCockpitSyncProgressEventArgs> TimeCockpitProgressEventHandler { get; set; }
Property Value
Type | Description |
---|---|
System.EventHandler<TimeCockpitSyncProgressEventArgs> |
UseTransaction
Gets or sets a value indicating whether to use a single transaction for the sync
Declaration
public bool UseTransaction { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
The default value is true.