You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To pass query Options, the `QueryOption` class is no longer used. Query options are set using the `requestConfiguration` modifier as follows
113
113
114
114
```cs
@@ -130,6 +130,36 @@ var groups = await graphServiceClient
130
130
});
131
131
```
132
132
133
+
### Per-Request Options
134
+
To pass per-request options to the default http middleware to configure actions like redirects and retries, this can be done using the `requestConfiguration` by adding an `IRequestOption` instance to the `Options` collection. For example, adding a `RetryHandlerOption` instance to configure the retry handler option as below.
Other `IRequestOption` instances provided by default include the following and their source can be found [here](https://github.com/microsoft/kiota-http-dotnet/tree/main/src/Middleware/Options)
147
+
148
+
-`RetryHandlerOption` - for configuring the retry handler to customise request retries
149
+
-`RedirectHandlerOption` - for configuring the redirect handler to customise request redirects
150
+
-`ChaosHandlerOption` - for configuring the chaos handler to customise simulated chaos when testing with mock responses
151
+
152
+
### Native Response Object
153
+
The per-request options object can be used to obtain the native `HttpReponseMessage` from the request to override the default response handling of the request builders using the `ResponseHandlerOption` as below. This can be used in scenarios where one wished to access the native response object or customize the response handling by creating and passing an instance of [IResponseHandler](https://github.com/microsoft/kiota-abstractions-dotnet/blob/main/src/IResponseHandler.cs).
Copy file name to clipboardExpand all lines: src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -47,8 +47,8 @@ public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
47
47
RequestAdapter=requestAdapter;
48
48
}
49
49
/// <summary>
50
-
/// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
51
-
/// Find more info here <see href="https://docs.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0" />
50
+
/// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
51
+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0" />
52
52
/// </summary>
53
53
/// <param name="body">The request body</param>
54
54
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
@@ -69,7 +69,7 @@ public async Task<InviteParticipantsOperation> PostAsync(InvitePostRequestBody b
/// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
72
+
/// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
73
73
/// </summary>
74
74
/// <param name="body">The request body</param>
75
75
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Copy file name to clipboardExpand all lines: src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
66
66
}
67
67
/// <summary>
68
68
/// Retrieve a list of tablecolumn objects.
69
-
/// Find more info here <see href="https://docs.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0" />
69
+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0" />
70
70
/// </summary>
71
71
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
72
72
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
0 commit comments