/// <summary>
 /// Obtains the Secure Credential for an LSM location.
 /// </summary>
 /// <returns>Connection string for LSM given its location.</returns>
 protected SqlCredential GetSecureCredentialForShardLocation(ShardLocation location)
 {
     return(this.Manager.Credentials.SecureCredentialShardMapManager);
 }
Esempio n. 2
0
 /// <summary>
 /// Constructs request to get shard with specific location for given shard map from GSM.
 /// </summary>
 /// <param name="shardMapManager">Shard map manager object.</param>
 /// <param name="operationName">Operation name, useful for diagnostics.</param>
 /// <param name="shardMap">Shard map for which shard is being requested.</param>
 /// <param name="location">Location of shard being searched.</param>
 internal FindShardByLocationGlobalOperation(ShardMapManager shardMapManager, string operationName, IStoreShardMap shardMap, ShardLocation location) :
     base(shardMapManager.Credentials, shardMapManager.RetryPolicy, operationName)
 {
     _shardMapManager = shardMapManager;
     _shardMap        = shardMap;
     _location        = location;
 }
 /// <summary>
 /// Constructs request for Detaching the given shard and mapping information to the GSM database.
 /// </summary>
 /// <param name="shardMapManager">Shard map manager object.</param>
 /// <param name="operationName">Operation name.</param>
 /// <param name="location">Location to be detached.</param>
 /// <param name="shardMapName">Shard map from which shard is being detached.</param>
 internal DetachShardGlobalOperation(ShardMapManager shardMapManager, string operationName, ShardLocation location, string shardMapName) :
     base(shardMapManager.Credentials, shardMapManager.RetryPolicy, operationName)
 {
     _shardMapName = shardMapName;
     _location     = location;
 }