public static PutBlobResult NewRedisEntry(ShortHash hash, long blobSize, string redisKey, long newCapacity) { return(new PutBlobResult(hash, blobSize, newRedisCapacity: newCapacity, alreadyInRedis: false, redisKey: redisKey)); }
public Task <PutBlobResult> PutBlobAsync(OperationContext context, ShortHash hash, byte[] blob) { throw new NotImplementedException(); }
public Task <GetBlobResult> GetBlobAsync(OperationContext context, ShortHash hash) { throw new NotImplementedException(); }
public static PutBlobResult RedisHasAlready(ShortHash hash, long blobSize, string redisKey) => new PutBlobResult(hash, blobSize, redisKey: redisKey, alreadyInRedis: true);
/// <nodoc /> public ShortHashWithSize(ShortHash contentHash, long size) { Hash = contentHash; Size = size; }
public static PutBlobResult Throttled(ShortHash hash, long blobSize, string redisKey, string extraMsg) { Contract.RequiresNotNullOrEmpty(extraMsg); return(new PutBlobResult(hash, blobSize, redisKey: redisKey, skipReason: SkipReason.Throttled, extraMsg: extraMsg)); }
public static PutBlobResult OutOfCapacity(ShortHash hash, long blobSize, string redisKey, string?extraMsg = null) { return(new PutBlobResult(hash, blobSize, redisKey: redisKey, skipReason: SkipReason.OutOfCapacity, extraMsg: extraMsg)); }
public PutBlobResult(ResultBase other, ShortHash hash, long blobSize) : base(other) { _hash = hash; _blobSize = blobSize; }
public PutBlobResult(ResultBase other, string message, ShortHash hash, long blobSize) : base(other, message) { _hash = hash; _blobSize = blobSize; }
public PutBlobResult(ShortHash hash, long blobSize, string errorMessage) : base(errorMessage) { _hash = hash; _blobSize = blobSize; }