Show / Hide Table of Contents

Class ClientServiceRequestExtensions

Extension methods for request objects.

Inheritance
System.Object
ClientServiceRequestExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Requests
Assembly: Google.Apis.dll
Syntax
public static class ClientServiceRequestExtensions

Methods

Configure<TRequest>(TRequest, Action<TRequest>)

Allows a request to be configured in a fluent manner, where normally separate statements are required after the request creation method is called.

Declaration
public static TRequest Configure<TRequest>(this TRequest request, Action<TRequest> configurationAction)
    where TRequest : ClientServiceRequest
Parameters
Type Name Description
TRequest request

The request to configure. Must not be null.

System.Action<TRequest> configurationAction

The configuration action to apply to the request. This is typically setting properties. Must not be null.

Returns
Type Description
TRequest

The value of request, after applying the configuration action.

Type Parameters
Name Description
TRequest

The type of the request to configure.

In This Article
Back to top