internal Task <GetContentHashListResult> GetContentHashListAsync(Context context, StrongFingerprint strongFingerprint, CancellationToken cts) { var ctx = new OperationContext(context, cts); return(GetContentHashListCall.RunAsync(_tracer, ctx, strongFingerprint, async() => { return await _database.GetContentHashListAsync(ctx, strongFingerprint); })); }
internal async Task <GetContentHashListResult> GetContentHashListAsync(Context context, StrongFingerprint strongFingerprint, CancellationToken cts) { var ctx = new OperationContext(context, cts); var result = await _database.GetContentHashListAsync(ctx, strongFingerprint); return(result.Succeeded ? new GetContentHashListResult(result.Value.contentHashListInfo) : new GetContentHashListResult(result)); }