/// <summary> /// Arguments used to create a <see cref="Shard"/>. /// </summary> /// <param name="location">Location of the shard.</param> public ShardCreationInfo(ShardLocation location) : this(location, ShardStatus.Online) { }
/// <summary> /// Arguments used to create a <see cref="Shard"/>. /// </summary> /// <param name="location">Location of the shard.</param> /// <param name="status">Status of the shard.</param> internal ShardCreationInfo(ShardLocation location, ShardStatus status) { ExceptionUtils.DisallowNullArgument(location, "location"); this.Location = location; this.Status = status; }
/// <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; }