public object FromEntry(DocumentModel.DynamoDBEntry entry) { S3ClientCache cache; if (!S3Link.Caches.TryGetValue(context, out cache)) { cache = S3Link.CreatClientCacheFromContext(context); } return(new S3Link(cache, entry.AsString())); }
public object FromEntry(DocumentModel.DynamoDBEntry entry) { S3ClientCache cache; if (!S3Link.Caches.TryGetValue(context, out cache)) { throw new InvalidOperationException("Must use S3Link.Create"); } return(new S3Link(cache, entry.AsString())); }