PartitionedRateLimiter<TResource> 클래스

정의

특정 TResource가 지정된 경우 작업을 진행할 수 있는지 확인하기 위해 사용자가 상호 작용하는 제한 형식을 나타냅니다.

public abstract class PartitionedRateLimiter<TResource> : IAsyncDisposable, IDisposable
type PartitionedRateLimiter<'Resource> = class
    interface IAsyncDisposable
    interface IDisposable
Public MustInherit Class PartitionedRateLimiter(Of TResource)
Implements IAsyncDisposable, IDisposable

형식 매개 변수

TResource

제한되는 리소스 종류입니다.

상속
PartitionedRateLimiter<TResource>
구현

생성자

PartitionedRateLimiter<TResource>()

특정 TResource가 지정된 경우 작업을 진행할 수 있는지 확인하기 위해 사용자가 상호 작용하는 제한 형식을 나타냅니다.

메서드

AcquireAsync(TResource, Int32, CancellationToken)

요청된 허가를 사용할 수 있거나 허가를 더 이상 획득할 수 없을 때까지 기다립니다.

AcquireAsyncCore(TResource, Int32, CancellationToken)

구현이 PartitionedRateLimiter<TResource> 에 대해 구현하는 메서드입니다 AcquireAsync(TResource, Int32, CancellationToken).

AttemptAcquire(TResource, Int32)

허가를 획득하려는 빠른 동기 시도.

AttemptAcquireCore(TResource, Int32)

구현이 PartitionedRateLimiter<TResource> 에 대해 구현하는 메서드입니다 AttemptAcquire(TResource, Int32).

Dispose()

RateLimiter를 삭제합니다. 이렇게 하면 실패한 임대를 사용하여 대기 중인 모든 획득이 완료됩니다.

Dispose(Boolean)

작성할 구현에 대한 Dispose 메서드입니다.

DisposeAsync()

RateLimiter를 비동기적으로 삭제합니다.

DisposeAsyncCore()

작성할 구현에 대한 DisposeAsync 메서드입니다.

GetStatistics(TResource)

사용 가능한 경우 에 대한 resource 통계의 스냅샷 가져옵니다.

WithTranslatedKey<TOuter>(Func<TOuter,TResource>, Boolean)

를 사용하여 PartitionedRateLimiter<TOuter>를 현재 PartitionedRateLimiter<TResource> 로 변환하여 TResource로 변환 TOuter 합니다.keyAdapter

적용 대상