Skip to content

Commit

Permalink
core ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Mar 6, 2024
1 parent 9fc5143 commit b0c34c5
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
// Licensed under the MIT License.

using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.Tracing;

#nullable enable

namespace Azure.Core.Shared
{
internal readonly struct EventSourceEvent: IReadOnlyList<KeyValuePair<string, object>>
internal readonly struct EventSourceEvent : IReadOnlyList<KeyValuePair<string, object?>>

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Analyze)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Analyze)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Analyze)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Analyze)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Analyze)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Analyze)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Analyze)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Analyze)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test MacOS11_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test MacOS11_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup13)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup13)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test MacOS11_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test MacOS11_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup1)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup1)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup6)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup6)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup7)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup7)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup0)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup0)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup12)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup12)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test MacOS11_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,49): Error CS0246: The type or namespace name 'IReadOnlyList<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test MacOS11_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L11

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(11,63): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)
{
public EventWrittenEventArgs EventData { get; }

Expand All @@ -16,11 +17,16 @@ public EventSourceEvent(EventWrittenEventArgs eventData)
EventData = eventData;
}

public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
public IEnumerator<KeyValuePair<string, object?>> GetEnumerator()

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Analyze)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Analyze)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test MacOS11_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test MacOS11_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup13)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup13)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test MacOS11_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test MacOS11_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup1)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup1)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup6)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup6)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup7)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup7)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup0)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup0)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup12)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup12)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test MacOS11_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,16): Error CS0308: The non-generic type 'IEnumerator' cannot be used with type arguments

Check failure on line 20 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test MacOS11_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L20

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(20,28): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)
{
if (EventData.PayloadNames == null || EventData.Payload == null)
{
yield break;
}

for (int i = 0; i < Count; i++)
{
yield return new KeyValuePair<string, object>(EventData.PayloadNames[i], EventData.Payload[i]);
yield return new KeyValuePair<string, object?>(EventData.PayloadNames[i], EventData.Payload[i]);
}
}

Expand All @@ -29,13 +35,24 @@ IEnumerator IEnumerable.GetEnumerator()
return GetEnumerator();
}

public int Count => EventData.PayloadNames.Count;
public int Count => EventData.PayloadNames?.Count ?? 0;

public string Format()
{
return EventSourceEventFormatting.Format(EventData);
}

public KeyValuePair<string, object> this[int index] => new KeyValuePair<string, object>(EventData.PayloadNames[index], EventData.Payload[index]);
public KeyValuePair<string, object?> this[int index]

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - extensions - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test MacOS11_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup13)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - monitor - ci (Build Test MacOS11_NET60_PackageRef_Debug)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup1)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup6)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET70_ProjectRef_Release_DependencyGroup7)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup0)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test Ubuntu2004_NET60_ProjectRef_Debug_DependencyGroup12)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 45 in sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs

View check run for this annotation

Azure Pipelines / net - core - ci (Build Test MacOS11_NET70_ProjectRef_Release)

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs#L45

sdk/core/Azure.Core/src/Shared/EventSourceEvent.cs(45,16): Error CS0246: The type or namespace name 'KeyValuePair<,>' could not be found (are you missing a using directive or an assembly reference?)
{
get
{
if (EventData.PayloadNames == null || EventData.Payload == null || index >= EventData.PayloadNames.Count)
{
throw new IndexOutOfRangeException("Index was out of range.");
}

return new KeyValuePair<string, object?>(EventData.PayloadNames[index], EventData.Payload[index]);
}
}
}
}

0 comments on commit b0c34c5

Please sign in to comment.