File: DependencyInjectionPoolOptions.cs
Web Access
Project: src\src\Libraries\Microsoft.Extensions.ObjectPool.DependencyInjection\Microsoft.Extensions.ObjectPool.DependencyInjection.csproj (Microsoft.Extensions.ObjectPool.DependencyInjection)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.Extensions.ObjectPool;
 
/// <summary>
/// Contains configuration for pools.
/// </summary>
public sealed class DependencyInjectionPoolOptions
{
    internal const int DefaultCapacity = 1024;
 
    /// <summary>
    /// Gets or sets the maximal capacity of the pool.
    /// </summary>
    /// <value>
    /// The default is 1024.
    /// </value>
    public int Capacity { get; set; } = DefaultCapacity;
}