Skip to content

Commit

Permalink
chore: make ActivityBaggageLogScopeWrapper implements IEnumerable<Key…
Browse files Browse the repository at this point in the history
…ValuePair<string, object?>>
  • Loading branch information
NatMarchand committed Oct 31, 2024
1 parent 6811fd5 commit 7af5298
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ IEnumerator IEnumerable.GetEnumerator()
}
}

private sealed class ActivityBaggageLogScopeWrapper : IEnumerable<KeyValuePair<string, string?>>
private sealed class ActivityBaggageLogScopeWrapper : IEnumerable<KeyValuePair<string, string?>>, IEnumerable<KeyValuePair<string, object?>>
{
private readonly IEnumerable<KeyValuePair<string, string?>> _items;

Expand All @@ -252,6 +252,11 @@ public ActivityBaggageLogScopeWrapper(IEnumerable<KeyValuePair<string, string?>>
return _items.GetEnumerator();
}

IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator()

Check failure on line 255 in src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs

View check run for this annotation

Azure Pipelines / extensions-ci (Correctness WarningsCheck)

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs#L255

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs(255,55): error CS8643: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullability of reference types in explicit interface specifier doesn't match interface implemented by the type.

Check failure on line 255 in src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs

View check run for this annotation

Azure Pipelines / extensions-ci (Correctness WarningsCheck)

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs#L255

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs(255,55): error CS8643: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullability of reference types in explicit interface specifier doesn't match interface implemented by the type.

Check failure on line 255 in src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs

View check run for this annotation

Azure Pipelines / extensions-ci (Correctness WarningsCheck)

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs#L255

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs(255,55): error CS8643: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullability of reference types in explicit interface specifier doesn't match interface implemented by the type.

Check failure on line 255 in src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs

View check run for this annotation

Azure Pipelines / extensions-ci

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs#L255

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs(255,55): error CS8643: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullability of reference types in explicit interface specifier doesn't match interface implemented by the type.

Check failure on line 255 in src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs

View check run for this annotation

Azure Pipelines / extensions-ci

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs#L255

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs(255,55): error CS8643: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullability of reference types in explicit interface specifier doesn't match interface implemented by the type.
{
return _items.Select(x => KeyValuePair.Create<string, object?>(x.Key, x.Value)).GetEnumerator();

Check failure on line 257 in src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs

View check run for this annotation

Azure Pipelines / extensions-ci (Correctness WarningsCheck)

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs#L257

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs(257,31): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IEnumerable<KeyValuePair<string, string?>>' does not contain a definition for 'Select' and no accessible extension method 'Select' accepting a first argument of type 'IEnumerable<KeyValuePair<string, string?>>' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 257 in src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs

View check run for this annotation

Azure Pipelines / extensions-ci (Correctness WarningsCheck)

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs#L257

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs(257,31): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IEnumerable<KeyValuePair<string, string?>>' does not contain a definition for 'Select' and no accessible extension method 'Select' accepting a first argument of type 'IEnumerable<KeyValuePair<string, string?>>' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 257 in src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs

View check run for this annotation

Azure Pipelines / extensions-ci (Build Ubuntu)

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs#L257

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs(257,31): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IEnumerable<KeyValuePair<string, string?>>' does not contain a definition for 'Select' and no accessible extension method 'Select' accepting a first argument of type 'IEnumerable<KeyValuePair<string, string?>>' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 257 in src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs

View check run for this annotation

Azure Pipelines / extensions-ci (Build Ubuntu)

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs#L257

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs(257,31): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IEnumerable<KeyValuePair<string, string?>>' does not contain a definition for 'Select' and no accessible extension method 'Select' accepting a first argument of type 'IEnumerable<KeyValuePair<string, string?>>' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 257 in src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs

View check run for this annotation

Azure Pipelines / extensions-ci (Build Ubuntu)

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs#L257

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs(257,31): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IEnumerable<KeyValuePair<string, string?>>' does not contain a definition for 'Select' and no accessible extension method 'Select' accepting a first argument of type 'IEnumerable<KeyValuePair<string, string?>>' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 257 in src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs

View check run for this annotation

Azure Pipelines / extensions-ci

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs#L257

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs(257,31): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IEnumerable<KeyValuePair<string, string?>>' does not contain a definition for 'Select' and no accessible extension method 'Select' accepting a first argument of type 'IEnumerable<KeyValuePair<string, string?>>' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 257 in src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs

View check run for this annotation

Azure Pipelines / extensions-ci

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs#L257

src/Libraries/Microsoft.Extensions.Telemetry/Logging/Import/LoggerFactoryScopeProvider.cs(257,31): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IEnumerable<KeyValuePair<string, string?>>' does not contain a definition for 'Select' and no accessible extension method 'Select' accepting a first argument of type 'IEnumerable<KeyValuePair<string, string?>>' could be found (are you missing a using directive or an assembly reference?)
}

IEnumerator IEnumerable.GetEnumerator()
{
return _items.GetEnumerator();
Expand Down

0 comments on commit 7af5298

Please sign in to comment.