BaseRequestExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension methods for BaseRequest
public static class BaseRequestExtensions
type BaseRequestExtensions = class
Public Module BaseRequestExtensions
- Inheritance
-
BaseRequestExtensions
Methods
WithMaxRedirects<T>(T, Int32) |
Sets the maximum number of redirects to the default Redirect Middleware Handler for this request. This only works with the default Redirect Middleware Handler. If you use a custom Redirect Middleware Handler, you have to handle it's retrieval in your implementation. |
WithMaxRetry<T>(T, Int32) |
Sets the maximum number of retries to the default Retry Middleware Handler for this request. This only works with the default Retry Middleware Handler. If you use a custom Retry Middleware Handler, you have to handle it's retrieval in your implementation. |
WithMaxRetry<T>(T, TimeSpan) |
Sets the maximum time for request retries to the default Retry Middleware Handler for this request. This only works with the default Retry Middleware Handler. If you use a custom Retry Middleware Handler, you have to handle it's retrieval in your implementation. |
WithPerRequestAuthProvider<T>(T) |
Sets the PerRequestAuthProvider delegate handler to the default Authentication Middleware Handler to authenticate a single request. The PerRequestAuthProvider delegate handler must be set to the GraphServiceClient instance before using this extension method otherwise, it defaults to the default authentication provider. This only works with the default authentication handler. If you use a custom authentication handler, you have to handle it's retrieval in your implementation. |
WithResponseHandler<T>(T, IResponseHandler) |
Replaces the default response handler with a custom response handler for this request. |
WithShouldRetry<T>(T, Func<Int32,Int32,HttpResponseMessage,Boolean>) |
Sets a ShouldRetry delegate to the default Retry Middleware Handler for this request. This only works with the default Retry Middleware Handler. If you use a custom Retry Middleware Handler, you have to handle it's retrieval in your implementation. |