-
Notifications
You must be signed in to change notification settings - Fork 5
BlazoradeRequestFactory
This service class is used to create HttpRequestMessage objects that have the Authorization header set to bearer with an access token acquired from the BlazoradeMsalService class.
This class is added to your application's service collection when you configure Blazorade MSAL as described in the getting started section.
This service class exposes the following methods. All methods that return an HttpRequestMessage object will also set the Authorization header on the returned instance.
CreateRequestAsync(CreateRequestOptions)
Creates a request object from the given options.
| Name | Type | Description |
|---|---|---|
| options | CreateRequestOptions | The options that control how the request is created. |
Task<HttpRequestMessage>
Creates a request from the given parameters.
| Name | Type | Description |
|---|---|---|
| requestUri | Uri | The URI to send the request to. |
| method | HttpMethod | The method to set on the request. |
| scopes | string[] | A collection of scopes that the acquired access token must at least have. |
Task<HttpRequestMessage>
Creates a request from the given parameters.
| Name | Type | Description |
|---|---|---|
| requestUri | Uri | The URI to send the request to. |
| method | HttpMethod | The method to set on the request. |
| scopes | string[] | A collection of scopes that the acquired access token must at least have. |
Task<HttpRequestMessage>
Creates a DELETE request from the given parameters.
| Name | Type | Description |
|---|---|---|
| requestUri | Uri | The URI to send the request to. |
| scopes | string[] | A collection of scopes that the acquired access token must at least have. |
Task<HttpRequestMessage>
Creates a DELETE request from the given parameters.
| Name | Type | Description |
|---|---|---|
| requestUri | Uri | The URI to send the request to. |
| scopes | string[] | A collection of scopes that the acquired access token must at least have. |
Task<HttpRequestMessage>
Creates a GET request from the given parameters.
| Name | Type | Description |
|---|---|---|
| requestUri | Uri | The URI to send the request to. |
| scopes | string[] | A collection of scopes that the acquired access token must at least have. |
Task<HttpRequestMessage>
Creates a GET request from the given parameters.
| Name | Type | Description |
|---|---|---|
| requestUri | Uri | The URI to send the request to. |
| scopes | string[] | A collection of scopes that the acquired access token must at least have. |
Task<HttpRequestMessage>
Creates a PATCH request from the given parameters.
| Name | Type | Description |
|---|---|---|
| requestUri | Uri | The URI to send the request to. |
| scopes | string[] | A collection of scopes that the acquired access token must at least have. |
Task<HttpRequestMessage>
Creates a PATCH request from the given parameters.
| Name | Type | Description |
|---|---|---|
| requestUri | Uri | The URI to send the request to. |
| scopes | string[] | A collection of scopes that the acquired access token must at least have. |
Task<HttpRequestMessage>
Creates a POST request from the given parameters.
| Name | Type | Description |
|---|---|---|
| requestUri | Uri | The URI to send the request to. |
| scopes | string[] | A collection of scopes that the acquired access token must at least have. |
Task<HttpRequestMessage>
Creates a POST request from the given parameters.
| Name | Type | Description |
|---|---|---|
| requestUri | Uri | The URI to send the request to. |
| scopes | string[] | A collection of scopes that the acquired access token must at least have. |
Task<HttpRequestMessage>
Creates a PUT request from the given parameters.
| Name | Type | Description |
|---|---|---|
| requestUri | Uri | The URI to send the request to. |
| scopes | string[] | A collection of scopes that the acquired access token must at least have. |
Task<HttpRequestMessage>
Creates a PUT request from the given parameters.
| Name | Type | Description |
|---|---|---|
| requestUri | Uri | The URI to send the request to. |
| scopes | string[] | A collection of scopes that the acquired access token must at least have. |
Task<HttpRequestMessage>