C# Class Polly.Bulkhead.BulkheadPolicy

Mostra file Open project: App-vNext/Polly

Public Methods

Method Description
Dispose ( ) : void

Disposes of the BulkheadPolicy, allowing it to dispose its internal resources. Only call Dispose() on a BulkheadPolicy after all actions executed through the policy have completed. If actions are still executing through the policy when Dispose() is called, an ObjectDisposedException may be thrown on the actions' threads when those actions complete.

Private Methods

Method Description
BulkheadPolicy ( Action exceptionPolicy, int maxParallelization, int maxQueueingActions, Nito.AsyncEx.AsyncSemaphore maxParallelizationSemaphore, Nito.AsyncEx.AsyncSemaphore maxQueuedActionsSemaphore ) : System
BulkheadPolicy ( Task>.Func asyncExceptionPolicy, int maxParallelization, int maxQueueingActions, Nito.AsyncEx.AsyncSemaphore maxParallelizationSemaphore, Nito.AsyncEx.AsyncSemaphore maxQueuedActionsSemaphore ) : System

Method Details

Dispose() public method

Disposes of the BulkheadPolicy, allowing it to dispose its internal resources. Only call Dispose() on a BulkheadPolicy after all actions executed through the policy have completed. If actions are still executing through the policy when Dispose() is called, an ObjectDisposedException may be thrown on the actions' threads when those actions complete.
public Dispose ( ) : void
return void