From 83ff5a2e3a0e384e2b86c2f04b289f66ecc1ff1b Mon Sep 17 00:00:00 2001 From: jericho Date: Wed, 29 Mar 2023 21:27:53 -0400 Subject: [PATCH] (GH-279) Convert IEnumerable to array prior to serialization Resolves #279 --- Source/ZoomNet/Resources/Meetings.cs | 2 +- Source/ZoomNet/Resources/Webinars.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ZoomNet/Resources/Meetings.cs b/Source/ZoomNet/Resources/Meetings.cs index fd186d38..cdd52983 100644 --- a/Source/ZoomNet/Resources/Meetings.cs +++ b/Source/ZoomNet/Resources/Meetings.cs @@ -547,7 +547,7 @@ public Task PerformBatchRegistrationAsync(long meetingId, var data = new JsonObject { - { "registrants", registrants }, + { "registrants", registrants.ToArray() }, { "auto_approve", autoApprove }, { "registrants_confirmation_email", registrantsConfirmationEmail }, }; diff --git a/Source/ZoomNet/Resources/Webinars.cs b/Source/ZoomNet/Resources/Webinars.cs index 9daf731b..2e15e4af 100644 --- a/Source/ZoomNet/Resources/Webinars.cs +++ b/Source/ZoomNet/Resources/Webinars.cs @@ -571,7 +571,7 @@ public Task PerformBatchRegistrationAsync(long webinarId, var data = new JsonObject { { "auto_approve", autoApprove }, - { "registrants", registrants }, + { "registrants", registrants.ToArray() }, }; return _client