PartitionedRateLimiter<TResource> 클래스

정의

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

generic <typename TResource>
public ref class PartitionedRateLimiter abstract : IAsyncDisposable, IDisposable
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>
구현

생성자

Name Description
PartitionedRateLimiter<TResource>()

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

메서드

Name Description
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>TOuterPartitionedRateLimiter<TResource>를 현재 keyAdapter 로 변환 TOuter 합니다TResource.

확장명 메서드

Name Description
ConfigureAwait(IAsyncDisposable, Boolean)

비동기 삭제 가능 파일에서 반환된 작업에 대한 대기가 수행되는 방법을 구성합니다.

적용 대상