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