Interface IClientServiceRequest
A client service request which supports both sync and async execution to get the stream.
Namespace: Google.Apis.Requests
Assembly: Google.Apis.dll
Syntax
public interface IClientServiceRequest
Properties
HttpMethod
Gets the HTTP method of this request.
Declaration
string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the name of the method to which this request belongs.
Declaration
string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
RequestParameters
Gets the parameters information for this specific request.
Declaration
IDictionary<string, IParameter> RequestParameters { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, IParameter> |
RestPath
Gets the rest path of this request.
Declaration
string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Service
Gets the service which is related to this request.
Declaration
IClientService Service { get; }
Property Value
Type | Description |
---|---|
IClientService |
Methods
CreateRequest(bool?)
Creates a HTTP request message with all path and query parameters, ETag, etc.
Declaration
HttpRequestMessage CreateRequest(bool? overrideGZipEnabled = null)
Parameters
Type | Name | Description |
---|---|---|
bool? | overrideGZipEnabled | If |
Returns
Type | Description |
---|---|
HttpRequestMessage |
ExecuteAsStream()
Executes the request and returns the result stream.
Declaration
Stream ExecuteAsStream()
Returns
Type | Description |
---|---|
Stream |
ExecuteAsStreamAsync()
Executes the request asynchronously and returns the result stream.
Declaration
Task<Stream> ExecuteAsStreamAsync()
Returns
Type | Description |
---|---|
Task<Stream> |
ExecuteAsStreamAsync(CancellationToken)
Executes the request asynchronously and returns the result stream.
Declaration
Task<Stream> ExecuteAsStreamAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token to cancel operation. |
Returns
Type | Description |
---|---|
Task<Stream> |