Class RequestModuleExtensions
Set of extension methods used to bring request module support
public static class RequestModuleExtensions
- Inheritance
-
RequestModuleExtensions
- Inherited Members
Methods
WithHeaders<TModel>(ISupportModules<TModel>, Dictionary<string, string>, Action<Dictionary<string, string>>)
Executes this request with additional request headers
public static TModel WithHeaders<TModel>(this ISupportModules<TModel> dataModel, Dictionary<string, string> headers, Action<Dictionary<string, string>> responseHeaders = null)
Parameters
dataModelISupportModules<TModel>Model instance to operate on
headersDictionary<string, string>Collection of headers to add to add to the request
responseHeadersAction<Dictionary<string, string>>Delegate that can be invoked to pass along the response headers
Returns
- TModel
The passed model instance
Type Parameters
TModelModel type
WithResponseHeaders<TModel>(ISupportModules<TModel>, Action<Dictionary<string, string>>)
Returns the response headers for Microsoft Graph, SharePoint REST and CSOM requests after this request has been executed
public static TModel WithResponseHeaders<TModel>(this ISupportModules<TModel> dataModel, Action<Dictionary<string, string>> responseHeaders = null)
Parameters
dataModelISupportModules<TModel>Model instance to operate on
responseHeadersAction<Dictionary<string, string>>Delegate that can be invoked to receive the response headers
Returns
- TModel
The passed model instance
Type Parameters
TModelModel type