Exemplo n.º 1
0
 /// <summary>
 /// Creates a new ReadOrQueryRequest from an ReadRequest.
 /// </summary>
 /// <param name="request">The request to wrap in a generic ReadOrQueryRequest</param>
 /// <returns>A new ReadOrQueryRequest that wraps the given request</returns>
 public static ReadOrQueryRequest FromReadRequest(ReadRequest request) =>
 FromRequest(request);
 partial void Modify_ReadRequest(ref ReadRequest request, ref CallSettings settings) =>
 ApplyResourcePrefixHeaderFromSession(ref settings, request.Session);
Exemplo n.º 3
0
 /// <summary>
 /// Creates a <see cref="ReliableStreamReader"/> for the given request.
 /// </summary>
 /// <param name="request">The read request. Must not be null. The request will be modified with session and transaction details
 /// from this object. If this object's <see cref="TransactionId"/> is null, the request's transaction is not modified.</param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A <see cref="ReliableStreamReader"/> for the streaming SQL request.</returns>
 public ReliableStreamReader ReadStreamReader(ReadRequest request, CallSettings callSettings) =>
 ExecuteReadOrQueryStreamReader(ReadOrQueryRequest.FromRequest(request), callSettings);