GetShardById() public méthode

Get shards information for given shard id
public GetShardById ( long shardId ) : Shard
shardId long
Résultat Shard
Exemple #1
0
        /// <summary>
        /// Get shard for given shard id
        /// </summary>
        /// <param name="shardId"></param>
        /// <returns></returns>
        public Shard GetShardById(long shardId)
        {
            var shardRepository = new ShardRepository();

            return shardRepository.GetShardById(shardId);
        }
Exemple #2
0
 /// <summary>
 /// Get application schema by shard id
 /// </summary>
 /// <param name="shardId"></param>
 /// <returns></returns>
 public AppSchema GetAppSchema(long shardId)
 {
     var shardRepository = new ShardRepository();
     var shard = shardRepository.GetShardById(shardId);
     return shardRepository.GetAppSchema(shard.application_name);
 }