GetShardById() public method

Get shards information for given shard id
public GetShardById ( long shardId ) : Shard
shardId long
return Shard
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
 }