Class MetaDataStore
MetaDataStore class provides methods to work with IReplicaMetadata implementations.
Inheritance
System.Object
MetaDataStore
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Sync
Assembly: Terrasoft.Sync.dll
Syntax
public class MetaDataStore
Remarks
MetaDataStore represented in database.
Constructors
MetaDataStore(UserConnection)
Declaration
public MetaDataStore(UserConnection userConnection)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection |
Methods
GetReplicaMetadata(Guid, Guid)
Returns IReplicaMetadata inited implementation for specified storage.
Declaration
public IReplicaMetadata GetReplicaMetadata(Guid localStoreId, Guid remoteStoreId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | localStoreId | Local storage id. |
System.Guid | remoteStoreId | Remote storage id. |
Returns
Type | Description |
---|---|
IReplicaMetadata | IReplicaMetadata inited implementation. |
Remarks
Future optimizations: in case of small ammount of metadata, load metadata items to IReplicaMetadata instance and work with stored in memory items in ReplicaMetadata.FindItemMetaData method.
RemoveReplicaMetadata(Guid)
Removes all metada for storage.
Declaration
public void RemoveReplicaMetadata(Guid storageId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | storageId | Storage id. |
Remarks
Not implemented.