C# Class syncing, qmap

Datei anzeigen Open project: NathanW2/qmap

Public Methods

Method Description
getScopes ( string clientconn ) : List

Return all the scopes defined in the database.

getScopes ( string clientconn, string scope ) : List

Returns the scopes and their sync order that are defined in the database.

syncscope ( SqlConnection server, SqlConnection client, string scope, SyncDirectionOrder order, DbApplyingChangesEventArgs>.Action callback, DbApplyingChangesEventArgs>.Action mastercallback ) : SyncOperationStatistics

Sync a single scope from the client to the server.

Private Methods

Method Description
ScopesDiffer ( SqlConnection server, SqlConnection client, string scopename ) : bool

Compares the xml scope info in server and client to make sure they are the same.

slaveProvider_ApplyChangeFailed ( object sender, Microsoft e ) : void

Handles errors that happen during syncing down to the client.

Method Details

getScopes() public static method

Return all the scopes defined in the database.
public static getScopes ( string clientconn ) : List
clientconn string
return List

getScopes() public static method

Returns the scopes and their sync order that are defined in the database.
public static getScopes ( string clientconn, string scope ) : List
clientconn string The connection string to the client
scope string The name of the scope to sync. If blank return /// all scopes.
return List

syncscope() public static method

Sync a single scope from the client to the server.
public static syncscope ( SqlConnection server, SqlConnection client, string scope, SyncDirectionOrder order, DbApplyingChangesEventArgs>.Action callback, DbApplyingChangesEventArgs>.Action mastercallback ) : SyncOperationStatistics
server SqlConnection Provider for the server.
client SqlConnection Provider for the client.
scope string
order SyncDirectionOrder
callback DbApplyingChangesEventArgs>.Action
mastercallback DbApplyingChangesEventArgs>.Action
return SyncOperationStatistics