C# Class syncing, qmap

Afficher le fichier Open project: NathanW2/qmap

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

getScopes() public static méthode

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.
Résultat List

syncscope() public static méthode

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
Résultat SyncOperationStatistics