1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
4 using System.Collections.Generic;
6 using Microsoft.Diagnostics.NETCore.Client;
8 namespace Microsoft.Diagnostics.Monitoring.EventPipe
10 public sealed class EventPipeProviderSourceConfiguration : MonitoringSourceConfiguration
12 private readonly IEnumerable<EventPipeProvider> _providers;
13 private readonly int _bufferSizeInMB;
15 public EventPipeProviderSourceConfiguration(bool requestRundown = true, int bufferSizeInMB = 256, params EventPipeProvider[] providers)
17 _providers = providers;
18 RequestRundown = requestRundown;
19 _bufferSizeInMB = bufferSizeInMB;
22 public override IList<EventPipeProvider> GetProviders()
24 return _providers.ToList();
27 public override int BufferSizeInMB => _bufferSizeInMB;