diff --git a/src/libraries/Microsoft.Extensions.DependencyInjection/src/DependencyInjectionEventSource.cs b/src/libraries/Microsoft.Extensions.DependencyInjection/src/DependencyInjectionEventSource.cs index 19616694cd0be..a99d3e57855cb 100644 --- a/src/libraries/Microsoft.Extensions.DependencyInjection/src/DependencyInjectionEventSource.cs +++ b/src/libraries/Microsoft.Extensions.DependencyInjection/src/DependencyInjectionEventSource.cs @@ -15,7 +15,7 @@ internal sealed class DependencyInjectionEventSource : EventSource public static readonly DependencyInjectionEventSource Log = new DependencyInjectionEventSource(); // Event source doesn't support large payloads so we chunk formatted call site tree - private int MaxChunkSize = 10 * 1024; + private const int MaxChunkSize = 10 * 1024; private DependencyInjectionEventSource() : base(EventSourceSettings.EtwSelfDescribingEventFormat)