0

我正在关注 MS Graph github 上发布的示例。 https://github.com/microsoftgraph/aspnetcore-webhooks-sample

一切正常。然后我想更新示例以使用 CallRecord 而不是通知控制器中的 ChangeNotification。当它试图序列化正文时,我遇到了这个错误:

The collection type 'Microsoft.Graph.CallRecords.ICallRecordSessionsCollectionPage' on 'Microsoft.Graph.CallRecords.CallRecord.Sessions' is not supported.

我在 NotificationController 上的 Listen 函数中的代码:

     var options = new JsonSerializerOptions
     {
         PropertyNameCaseInsensitive = true
     };
     options.Converters.Add(new JsonStringEnumConverter(JsonNamingPolicy.CamelCase));
     var record = await JsonSerializer.DeserializeAsync<Microsoft.Graph.CallRecords.CallRecord>(Request.Body, options);
4

0 回答 0