GetShardById() публичный Метод

Get shards information for given shard id
public GetShardById ( long shardId ) : Shard
shardId long
Результат Shard
Пример #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);
        }
Пример #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);
 }