// This file contains auto-generated code.
// Generated from `System.Threading.RateLimiting, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51`.
namespace System
{
    namespace Threading
    {
        namespace RateLimiting
        {
            public sealed class ConcurrencyLimiter : System.Threading.RateLimiting.RateLimiter
            {
                protected override System.Threading.Tasks.ValueTask<System.Threading.RateLimiting.RateLimitLease> AcquireAsyncCore(int permitCount, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null;
                protected override System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(int permitCount) => throw null;
                public ConcurrencyLimiter(System.Threading.RateLimiting.ConcurrencyLimiterOptions options) => throw null;
                protected override void Dispose(bool disposing) => throw null;
                protected override System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null;
                public override System.Threading.RateLimiting.RateLimiterStatistics GetStatistics() => throw null;
                public override System.TimeSpan? IdleDuration { get => throw null; }
            }
            public sealed class ConcurrencyLimiterOptions
            {
                public ConcurrencyLimiterOptions() => throw null;
                public int PermitLimit { get => throw null; set { } }
                public int QueueLimit { get => throw null; set { } }
                public System.Threading.RateLimiting.QueueProcessingOrder QueueProcessingOrder { get => throw null; set { } }
            }
            public sealed class FixedWindowRateLimiter : System.Threading.RateLimiting.ReplenishingRateLimiter
            {
                protected override System.Threading.Tasks.ValueTask<System.Threading.RateLimiting.RateLimitLease> AcquireAsyncCore(int permitCount, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null;
                protected override System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(int permitCount) => throw null;
                public FixedWindowRateLimiter(System.Threading.RateLimiting.FixedWindowRateLimiterOptions options) => throw null;
                protected override void Dispose(bool disposing) => throw null;
                protected override System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null;
                public override System.Threading.RateLimiting.RateLimiterStatistics GetStatistics() => throw null;
                public override System.TimeSpan? IdleDuration { get => throw null; }
                public override bool IsAutoReplenishing { get => throw null; }
                public override System.TimeSpan ReplenishmentPeriod { get => throw null; }
                public override bool TryReplenish() => throw null;
            }
            public sealed class FixedWindowRateLimiterOptions
            {
                public bool AutoReplenishment { get => throw null; set { } }
                public FixedWindowRateLimiterOptions() => throw null;
                public int PermitLimit { get => throw null; set { } }
                public int QueueLimit { get => throw null; set { } }
                public System.Threading.RateLimiting.QueueProcessingOrder QueueProcessingOrder { get => throw null; set { } }
                public System.TimeSpan Window { get => throw null; set { } }
            }
            public static class MetadataName
            {
                public static System.Threading.RateLimiting.MetadataName<T> Create<T>(string name) => throw null;
                public static System.Threading.RateLimiting.MetadataName<string> ReasonPhrase { get => throw null; }
                public static System.Threading.RateLimiting.MetadataName<System.TimeSpan> RetryAfter { get => throw null; }
            }
            public sealed class MetadataName<T> : System.IEquatable<System.Threading.RateLimiting.MetadataName<T>>
            {
                public MetadataName(string name) => throw null;
                public override bool Equals(object obj) => throw null;
                public bool Equals(System.Threading.RateLimiting.MetadataName<T> other) => throw null;
                public override int GetHashCode() => throw null;
                public string Name { get => throw null; }
                public static bool operator ==(System.Threading.RateLimiting.MetadataName<T> left, System.Threading.RateLimiting.MetadataName<T> right) => throw null;
                public static bool operator !=(System.Threading.RateLimiting.MetadataName<T> left, System.Threading.RateLimiting.MetadataName<T> right) => throw null;
                public override string ToString() => throw null;
            }
            public static class PartitionedRateLimiter
            {
                public static System.Threading.RateLimiting.PartitionedRateLimiter<TResource> Create<TResource, TPartitionKey>(System.Func<TResource, System.Threading.RateLimiting.RateLimitPartition<TPartitionKey>> partitioner, System.Collections.Generic.IEqualityComparer<TPartitionKey> equalityComparer = default(System.Collections.Generic.IEqualityComparer<TPartitionKey>)) => throw null;
                public static System.Threading.RateLimiting.PartitionedRateLimiter<TResource> CreateChained<TResource>(params System.Threading.RateLimiting.PartitionedRateLimiter<TResource>[] limiters) => throw null;
            }
            public abstract class PartitionedRateLimiter<TResource> : System.IAsyncDisposable, System.IDisposable
            {
                public System.Threading.Tasks.ValueTask<System.Threading.RateLimiting.RateLimitLease> AcquireAsync(TResource resource, int permitCount = default(int), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null;
                protected abstract System.Threading.Tasks.ValueTask<System.Threading.RateLimiting.RateLimitLease> AcquireAsyncCore(TResource resource, int permitCount, System.Threading.CancellationToken cancellationToken);
                public System.Threading.RateLimiting.RateLimitLease AttemptAcquire(TResource resource, int permitCount = default(int)) => throw null;
                protected abstract System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(TResource resource, int permitCount);
                protected PartitionedRateLimiter() => throw null;
                public void Dispose() => throw null;
                protected virtual void Dispose(bool disposing) => throw null;
                public System.Threading.Tasks.ValueTask DisposeAsync() => throw null;
                protected virtual System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null;
                public abstract System.Threading.RateLimiting.RateLimiterStatistics GetStatistics(TResource resource);
                public System.Threading.RateLimiting.PartitionedRateLimiter<TOuter> WithTranslatedKey<TOuter>(System.Func<TOuter, TResource> keyAdapter, bool leaveOpen) => throw null;
            }
            public enum QueueProcessingOrder
            {
                OldestFirst = 0,
                NewestFirst = 1,
            }
            public abstract class RateLimiter : System.IAsyncDisposable, System.IDisposable
            {
                public System.Threading.Tasks.ValueTask<System.Threading.RateLimiting.RateLimitLease> AcquireAsync(int permitCount = default(int), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null;
                protected abstract System.Threading.Tasks.ValueTask<System.Threading.RateLimiting.RateLimitLease> AcquireAsyncCore(int permitCount, System.Threading.CancellationToken cancellationToken);
                public System.Threading.RateLimiting.RateLimitLease AttemptAcquire(int permitCount = default(int)) => throw null;
                protected abstract System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(int permitCount);
                protected RateLimiter() => throw null;
                public void Dispose() => throw null;
                protected virtual void Dispose(bool disposing) => throw null;
                public System.Threading.Tasks.ValueTask DisposeAsync() => throw null;
                protected virtual System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null;
                public abstract System.Threading.RateLimiting.RateLimiterStatistics GetStatistics();
                public abstract System.TimeSpan? IdleDuration { get; }
            }
            public class RateLimiterStatistics
            {
                public RateLimiterStatistics() => throw null;
                public long CurrentAvailablePermits { get => throw null; set { } }
                public long CurrentQueuedCount { get => throw null; set { } }
                public long TotalFailedLeases { get => throw null; set { } }
                public long TotalSuccessfulLeases { get => throw null; set { } }
            }
            public abstract class RateLimitLease : System.IDisposable
            {
                protected RateLimitLease() => throw null;
                public void Dispose() => throw null;
                protected virtual void Dispose(bool disposing) => throw null;
                public virtual System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, object>> GetAllMetadata() => throw null;
                public abstract bool IsAcquired { get; }
                public abstract System.Collections.Generic.IEnumerable<string> MetadataNames { get; }
                public abstract bool TryGetMetadata(string metadataName, out object metadata);
                public bool TryGetMetadata<T>(System.Threading.RateLimiting.MetadataName<T> metadataName, out T metadata) => throw null;
            }
            public static class RateLimitPartition
            {
                public static System.Threading.RateLimiting.RateLimitPartition<TKey> Get<TKey>(TKey partitionKey, System.Func<TKey, System.Threading.RateLimiting.RateLimiter> factory) => throw null;
                public static System.Threading.RateLimiting.RateLimitPartition<TKey> GetConcurrencyLimiter<TKey>(TKey partitionKey, System.Func<TKey, System.Threading.RateLimiting.ConcurrencyLimiterOptions> factory) => throw null;
                public static System.Threading.RateLimiting.RateLimitPartition<TKey> GetFixedWindowLimiter<TKey>(TKey partitionKey, System.Func<TKey, System.Threading.RateLimiting.FixedWindowRateLimiterOptions> factory) => throw null;
                public static System.Threading.RateLimiting.RateLimitPartition<TKey> GetNoLimiter<TKey>(TKey partitionKey) => throw null;
                public static System.Threading.RateLimiting.RateLimitPartition<TKey> GetSlidingWindowLimiter<TKey>(TKey partitionKey, System.Func<TKey, System.Threading.RateLimiting.SlidingWindowRateLimiterOptions> factory) => throw null;
                public static System.Threading.RateLimiting.RateLimitPartition<TKey> GetTokenBucketLimiter<TKey>(TKey partitionKey, System.Func<TKey, System.Threading.RateLimiting.TokenBucketRateLimiterOptions> factory) => throw null;
            }
            public struct RateLimitPartition<TKey>
            {
                public RateLimitPartition(TKey partitionKey, System.Func<TKey, System.Threading.RateLimiting.RateLimiter> factory) => throw null;
                public System.Func<TKey, System.Threading.RateLimiting.RateLimiter> Factory { get => throw null; }
                public TKey PartitionKey { get => throw null; }
            }
            public abstract class ReplenishingRateLimiter : System.Threading.RateLimiting.RateLimiter
            {
                protected ReplenishingRateLimiter() => throw null;
                public abstract bool IsAutoReplenishing { get; }
                public abstract System.TimeSpan ReplenishmentPeriod { get; }
                public abstract bool TryReplenish();
            }
            public sealed class SlidingWindowRateLimiter : System.Threading.RateLimiting.ReplenishingRateLimiter
            {
                protected override System.Threading.Tasks.ValueTask<System.Threading.RateLimiting.RateLimitLease> AcquireAsyncCore(int permitCount, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null;
                protected override System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(int permitCount) => throw null;
                public SlidingWindowRateLimiter(System.Threading.RateLimiting.SlidingWindowRateLimiterOptions options) => throw null;
                protected override void Dispose(bool disposing) => throw null;
                protected override System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null;
                public override System.Threading.RateLimiting.RateLimiterStatistics GetStatistics() => throw null;
                public override System.TimeSpan? IdleDuration { get => throw null; }
                public override bool IsAutoReplenishing { get => throw null; }
                public override System.TimeSpan ReplenishmentPeriod { get => throw null; }
                public override bool TryReplenish() => throw null;
            }
            public sealed class SlidingWindowRateLimiterOptions
            {
                public bool AutoReplenishment { get => throw null; set { } }
                public SlidingWindowRateLimiterOptions() => throw null;
                public int PermitLimit { get => throw null; set { } }
                public int QueueLimit { get => throw null; set { } }
                public System.Threading.RateLimiting.QueueProcessingOrder QueueProcessingOrder { get => throw null; set { } }
                public int SegmentsPerWindow { get => throw null; set { } }
                public System.TimeSpan Window { get => throw null; set { } }
            }
            public sealed class TokenBucketRateLimiter : System.Threading.RateLimiting.ReplenishingRateLimiter
            {
                protected override System.Threading.Tasks.ValueTask<System.Threading.RateLimiting.RateLimitLease> AcquireAsyncCore(int tokenCount, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null;
                protected override System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(int tokenCount) => throw null;
                public TokenBucketRateLimiter(System.Threading.RateLimiting.TokenBucketRateLimiterOptions options) => throw null;
                protected override void Dispose(bool disposing) => throw null;
                protected override System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null;
                public override System.Threading.RateLimiting.RateLimiterStatistics GetStatistics() => throw null;
                public override System.TimeSpan? IdleDuration { get => throw null; }
                public override bool IsAutoReplenishing { get => throw null; }
                public override System.TimeSpan ReplenishmentPeriod { get => throw null; }
                public override bool TryReplenish() => throw null;
            }
            public sealed class TokenBucketRateLimiterOptions
            {
                public bool AutoReplenishment { get => throw null; set { } }
                public TokenBucketRateLimiterOptions() => throw null;
                public int QueueLimit { get => throw null; set { } }
                public System.Threading.RateLimiting.QueueProcessingOrder QueueProcessingOrder { get => throw null; set { } }
                public System.TimeSpan ReplenishmentPeriod { get => throw null; set { } }
                public int TokenLimit { get => throw null; set { } }
                public int TokensPerPeriod { get => throw null; set { } }
            }
        }
    }
}
