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 |
IDictionarystringIParameter |
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(bool?)
HttpRequestMessage CreateRequest(bool? overrideGZipEnabled = null)
Creates a HTTP request message with all path and query parameters, ETag, etc.
Parameter | |
---|---|
Name | Description |
overrideGZipEnabled |
bool 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 |
TaskStream |
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 |
TaskStream |