C# 클래스 Imgix_Dotnet.Sharding.RoundRobinShardingStrategy

Cycles the
상속: IShardingStrategy
파일 보기 프로젝트 열기: estei/Imgix-Dotnet 1 사용 예제들

공개 메소드들

메소드 설명
GetShardId ( string path, int shardCount ) : int

Returns the next shard id in a round robin fashion

RoundRobinShardingStrategy ( ) : System

Initializes a new RoundRobinShardingStrategy object. Since this contains a counter we should never copy it. Create a new every time.

메소드 상세

GetShardId() 공개 메소드

Returns the next shard id in a round robin fashion
public GetShardId ( string path, int shardCount ) : int
path string The path
shardCount int How many shards are we working with
리턴 int

RoundRobinShardingStrategy() 공개 메소드

Initializes a new RoundRobinShardingStrategy object. Since this contains a counter we should never copy it. Create a new every time.
public RoundRobinShardingStrategy ( ) : System
리턴 System