1- # Copyright (c) Microsoft Corporation.
1+ # Copyright (c) Microsoft Corporation.
22# Licensed under the MIT License.
33
44function Read-UInt16LE {
@@ -65,7 +65,7 @@ function Convert-AppointmentRecurrenceBlobToBytes {
6565 )
6666
6767 if ($AppointmentRecurrenceBlob -is [byte []]) {
68- return , $AppointmentRecurrenceBlob
68+ return , $AppointmentRecurrenceBlob
6969 }
7070
7171 $blobText = [string ]$AppointmentRecurrenceBlob
@@ -83,7 +83,7 @@ function Convert-AppointmentRecurrenceBlobToBytes {
8383 $bytes [$index / 2 ] = [Convert ]::ToByte($blobText.Substring ($index , 2 ), 16 )
8484 }
8585
86- return , $bytes
86+ return , $bytes
8787}
8888
8989function Get-RecentExceptionCutoff {
@@ -121,7 +121,7 @@ function Get-CalendarDiagnosticObjectDeduplicationKey {
121121 return " $itemId |$calendarLogRequestId |$logTimestamp |$originalStartDate |$triggerAction |$itemClass |$itemVersion |$logRowType |$responsibleUserName |$clientInfo "
122122}
123123
124- function Remove-DuplicateCalendarDiagnosticObjects {
124+ function RemoveDuplicateCalendarDiagnosticObjects {
125125 param (
126126 [array ]$CalLogs ,
127127 [switch ]$Quiet
@@ -150,10 +150,10 @@ function Merge-CalendarDiagnosticObjects {
150150 )
151151
152152 $combinedLogs = @ ($BaseLogs ) + @ ($AdditionalLogs )
153- return Remove-DuplicateCalendarDiagnosticObjects - CalLogs $combinedLogs - Quiet
153+ return RemoveDuplicateCalendarDiagnosticObjects - CalLogs $combinedLogs - Quiet
154154}
155155
156- function Filter-ExceptionLogsByRecency {
156+ function FilterExceptionLogsByRecency {
157157 param (
158158 [array ]$ExceptionLogs
159159 )
@@ -279,7 +279,7 @@ function Get-ExceptionDatesFromMostRecentAppointmentBlob {
279279 }
280280}
281281
282- function Collect-ExceptionLogsLegacy {
282+ function CollectExceptionLogsLegacy {
283283 param (
284284 [string ]$Identity ,
285285 [string ]$MeetingID ,
@@ -309,7 +309,7 @@ function Collect-ExceptionLogsLegacy {
309309 $cutoffDate = Get-RecentExceptionCutoff
310310 if ($null -ne $cutoffDate ) {
311311 Write-Host - ForegroundColor Yellow " Filtering legacy Exception logs to only keep items with OriginalStartDate in the last 6 months."
312- $ExceptionLogs = Filter - ExceptionLogsByRecency - ExceptionLogs $ExceptionLogs
312+ $ExceptionLogs = FilterExceptionLogsByRecency - ExceptionLogs $ExceptionLogs
313313 }
314314
315315 Write-Host - ForegroundColor Cyan " Found $ ( $ExceptionLogs.count ) Exception Logs, adding them into the CalLogs."
@@ -321,7 +321,7 @@ function Collect-ExceptionLogsLegacy {
321321 }
322322}
323323
324- function Collect-ExceptionLogsFast {
324+ function CollectExceptionLogsFast {
325325 param (
326326 [string ]$Identity ,
327327 [string ]$MeetingID
@@ -360,7 +360,7 @@ function Collect-ExceptionLogsFast {
360360 $script :ExceptionCollectionStatus = " CollectedFast"
361361}
362362
363- function Collect-ExceptionLogs {
363+ function CollectExceptionLogs {
364364 param (
365365 [string ]$Identity ,
366366 [string ]$MeetingID
@@ -373,16 +373,16 @@ function Collect-ExceptionLogs {
373373 if ($IsRecurring ) {
374374 if ($FastExceptions.IsPresent -and [string ]::IsNullOrEmpty($ExceptionDate )) {
375375 try {
376- Collect - ExceptionLogsFast - Identity $Identity - MeetingID $MeetingID
376+ CollectExceptionLogsFast - Identity $Identity - MeetingID $MeetingID
377377 } catch {
378378 $script :ExceptionCollectionStatus = " CollectedLegacyFallback"
379379 Write-DashLineBoxColor " FAST EXCEPTION COLLECTION FAILED" ,
380380 " Error: $ ( $_.Exception.Message ) " ,
381381 " Falling back to the legacy per-appointment Exception collector." - Color Red - DashChar " ="
382- Collect - ExceptionLogsLegacy - Identity $Identity - MeetingID $MeetingID - UsedAsFallback
382+ CollectExceptionLogsLegacy - Identity $Identity - MeetingID $MeetingID - UsedAsFallback
383383 }
384384 } else {
385- Collect - ExceptionLogsLegacy - Identity $Identity - MeetingID $MeetingID
385+ CollectExceptionLogsLegacy - Identity $Identity - MeetingID $MeetingID
386386 }
387387 } else {
388388 $script :ExceptionCollectionStatus = " NotRecurring"
0 commit comments