Метод | Описание | |
---|---|---|
Bulkhead ( int maxParallelization ) : BulkheadPolicy |
Builds a bulkhead isolation Policy, which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system. When an execution would cause the number of actions executing concurrently through the policy to exceed maxParallelization, the action is not executed and a BulkheadRejectedException is thrown.
|
|
Bulkhead ( int maxParallelization, Action |
Builds a bulkhead isolation Policy, which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system. When an execution would cause the number of actions executing concurrently through the policy to exceed maxParallelization, the action is not executed and a BulkheadRejectedException is thrown.
|
|
Bulkhead ( int maxParallelization, int maxQueuingActions ) : BulkheadPolicy |
Builds a bulkhead isolation Policy, which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system. When an execution would cause the number of actions executing concurrently through the policy to exceed maxParallelization, the policy allows a further maxQueuingActions executions to queue, waiting for a concurrent execution slot. When an execution would cause the number of queuing actions to exceed maxQueuingActions, a BulkheadRejectedException is thrown.
|
|
Bulkhead ( int maxParallelization, int maxQueuingActions, Action |
Builds a bulkhead isolation Policy, which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system. When an execution would cause the number of actions executing concurrently through the policy to exceed maxParallelization, the policy allows a further maxQueuingActions executions to queue, waiting for a concurrent execution slot. When an execution would cause the number of queuing actions to exceed maxQueuingActions, a BulkheadRejectedException is thrown.
|
|
BulkheadAsync ( int maxParallelization ) : BulkheadPolicy |
Builds a bulkhead isolation Policy, which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system. When an execution would cause the number of actions executing concurrently through the policy to exceed maxParallelization, the action is not executed and a BulkheadRejectedException is thrown.
|
|
BulkheadAsync ( int maxParallelization, Task>.Func |
Builds a bulkhead isolation Policy, which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system. When an execution would cause the number of actions executing concurrently through the policy to exceed maxParallelization, the action is not executed and a BulkheadRejectedException is thrown.
|
|
BulkheadAsync ( int maxParallelization, int maxQueuingActions ) : BulkheadPolicy |
Builds a bulkhead isolation Policy, which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system. When an execution would cause the number of actions executing concurrently through the policy to exceed maxParallelization, the policy allows a further maxQueuingActions executions to queue, waiting for a concurrent execution slot. When an execution would cause the number of queuing actions to exceed maxQueuingActions, a BulkheadRejectedException is thrown.
|
|
BulkheadAsync ( int maxParallelization, int maxQueuingActions, Task>.Func |
Builds a bulkhead isolation Policy, which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system. When an execution would cause the number of actions executing concurrently through the policy to exceed maxParallelization, the policy allows a further maxQueuingActions executions to queue, waiting for a concurrent execution slot. When an execution would cause the number of queuing actions to exceed maxQueuingActions, a BulkheadRejectedException is thrown.
|
|
Timeout ( Func |
Builds a Policy that will wait for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
Timeout ( Func |
Builds a Policy that will wait for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
Timeout ( Func |
Builds a Policy that will wait for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
Timeout ( Func |
Builds a Policy that will wait for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
Timeout ( System.TimeSpan timeout ) : |
Builds a Policy that will wait for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
Timeout ( System.TimeSpan timeout, Action |
Builds a Policy that will wait for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
Timeout ( System.TimeSpan timeout, TimeoutStrategy timeoutStrategy ) : |
Builds a Policy that will wait for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
Timeout ( System.TimeSpan timeout, TimeoutStrategy timeoutStrategy, Action |
Builds a Policy that will wait for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
Timeout ( int seconds ) : |
Builds a Policy that will wait for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
Timeout ( int seconds, Action |
Builds a Policy that will wait for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
Timeout ( int seconds, TimeoutStrategy timeoutStrategy ) : |
Builds a Policy that will wait for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
Timeout ( int seconds, TimeoutStrategy timeoutStrategy, Action |
Builds a Policy that will wait for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
TimeoutAsync ( Func |
Builds a Policy that will wait asynchronously for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
TimeoutAsync ( Func |
Builds a Policy that will wait asynchronously for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
TimeoutAsync ( Func |
Builds a Policy that will wait asynchronously for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
TimeoutAsync ( Func |
Builds a Policy that will wait asynchronously for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
TimeoutAsync ( System.TimeSpan timeout ) : |
Builds a Policy that will wait asynchronously for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
TimeoutAsync ( System.TimeSpan timeout, Func |
Builds a Policy that will wait asynchronously for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
TimeoutAsync ( System.TimeSpan timeout, TimeoutStrategy timeoutStrategy ) : |
Builds a Policy that will wait asynchronously for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
TimeoutAsync ( System.TimeSpan timeout, TimeoutStrategy timeoutStrategy, Func |
Builds a Policy that will wait asynchronously for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
TimeoutAsync ( int seconds ) : |
Builds a Policy that will wait asynchronously for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
TimeoutAsync ( int seconds, Func |
Builds a Policy that will wait asynchronously for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
TimeoutAsync ( int seconds, TimeoutStrategy timeoutStrategy ) : |
Builds a Policy that will wait asynchronously for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
TimeoutAsync ( int seconds, TimeoutStrategy timeoutStrategy, Func |
Builds a Policy that will wait asynchronously for a delegate to complete for a specified period of time. A TimeoutRejectedException will be thrown if the delegate does not complete within the configured timeout.
|
|
WithPolicyKey ( String policyKey ) : Policy |
Sets the PolicyKey for this Policy instance.
|
Метод | Описание | |
---|---|---|
SetPolicyContext ( Context executionContext ) : void |
Updates the execution Context with context from the executing Policy.
|
public static Bulkhead ( int maxParallelization ) : BulkheadPolicy | ||
maxParallelization | int | The maximum number of concurrent actions that may be executing through the policy. |
Результат | BulkheadPolicy |
public static Bulkhead ( int maxParallelization, Action |
||
maxParallelization | int | The maximum number of concurrent actions that may be executing through the policy. |
onBulkheadRejected | Action |
An action to call, if the bulkhead rejects execution due to oversubscription. |
Результат | BulkheadPolicy |
public static Bulkhead ( int maxParallelization, int maxQueuingActions ) : BulkheadPolicy | ||
maxParallelization | int | The maximum number of concurrent actions that may be executing through the policy. |
maxQueuingActions | int | The maxmimum number of actions that may be queuing, waiting for an execution slot. |
Результат | BulkheadPolicy |
public static Bulkhead ( int maxParallelization, int maxQueuingActions, Action |
||
maxParallelization | int | The maximum number of concurrent actions that may be executing through the policy. |
maxQueuingActions | int | The maxmimum number of actions that may be queuing, waiting for an execution slot. |
onBulkheadRejected | Action |
An action to call, if the bulkhead rejects execution due to oversubscription. |
Результат | BulkheadPolicy |
public static BulkheadAsync ( int maxParallelization ) : BulkheadPolicy | ||
maxParallelization | int | The maximum number of concurrent actions that may be executing through the policy. |
Результат | BulkheadPolicy |
public static BulkheadAsync ( int maxParallelization, Task>.Func |
||
maxParallelization | int | The maximum number of concurrent actions that may be executing through the policy. |
onBulkheadRejectedAsync | Task>.Func | An action to call asynchronously, if the bulkhead rejects execution due to oversubscription. |
Результат | BulkheadPolicy |
public static BulkheadAsync ( int maxParallelization, int maxQueuingActions ) : BulkheadPolicy | ||
maxParallelization | int | The maximum number of concurrent actions that may be executing through the policy. |
maxQueuingActions | int | The maxmimum number of actions that may be queuing, waiting for an execution slot. |
Результат | BulkheadPolicy |
public static BulkheadAsync ( int maxParallelization, int maxQueuingActions, Task>.Func |
||
maxParallelization | int | The maximum number of concurrent actions that may be executing through the policy. |
maxQueuingActions | int | The maxmimum number of actions that may be queuing, waiting for an execution slot. |
onBulkheadRejectedAsync | Task>.Func | An action to call asynchronously, if the bulkhead rejects execution due to oversubscription. |
Результат | BulkheadPolicy |
public static Timeout ( Func |
||
timeoutProvider | Func |
A function to provide the timeout for this execution. |
Результат |
public static Timeout ( Func |
||
timeoutProvider | Func |
A function to provide the timeout for this execution. |
onTimeout | Action |
An action to call on timeout, passing the execution context, the timeout applied, and a |
Результат |
public static Timeout ( Func |
||
timeoutProvider | Func |
A function to provide the timeout for this execution. |
timeoutStrategy | TimeoutStrategy | The timeout strategy. |
Результат |
public static Timeout ( Func |
||
timeoutProvider | Func |
A function to provide the timeout for this execution. |
timeoutStrategy | TimeoutStrategy | The timeout strategy. |
onTimeout | Action |
An action to call on timeout, passing the execution context, the timeout applied, and a |
Результат |
public static Timeout ( System.TimeSpan timeout ) : |
||
timeout | System.TimeSpan | The timeout. |
Результат |
public static Timeout ( System.TimeSpan timeout, Action |
||
timeout | System.TimeSpan | The timeout. |
onTimeout | Action |
An action to call on timeout, passing the execution context, the timeout applied, and a |
Результат |
public static Timeout ( System.TimeSpan timeout, TimeoutStrategy timeoutStrategy ) : |
||
timeout | System.TimeSpan | The timeout. |
timeoutStrategy | TimeoutStrategy | The timeout strategy. |
Результат |
public static Timeout ( System.TimeSpan timeout, TimeoutStrategy timeoutStrategy, Action |
||
timeout | System.TimeSpan | The timeout. |
timeoutStrategy | TimeoutStrategy | The timeout strategy. |
onTimeout | Action |
An action to call on timeout, passing the execution context, the timeout applied, and a |
Результат |
public static Timeout ( int seconds ) : |
||
seconds | int | The number of seconds after which to timeout. |
Результат |
public static Timeout ( int seconds, Action |
||
seconds | int | The number of seconds after which to timeout. |
onTimeout | Action |
An action to call on timeout, passing the execution context, the timeout applied, and a |
Результат |
public static Timeout ( int seconds, TimeoutStrategy timeoutStrategy ) : |
||
seconds | int | The number of seconds after which to timeout. |
timeoutStrategy | TimeoutStrategy | The timeout strategy. |
Результат |
public static Timeout ( int seconds, TimeoutStrategy timeoutStrategy, Action |
||
seconds | int | The number of seconds after which to timeout. |
timeoutStrategy | TimeoutStrategy | The timeout strategy. |
onTimeout | Action |
An action to call on timeout, passing the execution context, the timeout applied, and a |
Результат |
public static TimeoutAsync ( Func |
||
timeoutProvider | Func |
A function to provide the timeout for this execution. |
Результат |
public static TimeoutAsync ( Func |
||
timeoutProvider | Func |
A function to provide the timeout for this execution. |
onTimeoutAsync | Func |
An action to call on timeout, passing the execution context, the timeout applied, and a |
Результат |
public static TimeoutAsync ( Func |
||
timeoutProvider | Func |
A function to provide the timeout for this execution. |
timeoutStrategy | TimeoutStrategy | The timeout strategy. |
Результат |
public static TimeoutAsync ( Func |
||
timeoutProvider | Func |
A function to provide the timeout for this execution. |
timeoutStrategy | TimeoutStrategy | The timeout strategy. |
onTimeoutAsync | Func |
An action to call on timeout, passing the execution context, the timeout applied, and a |
Результат |
public static TimeoutAsync ( System.TimeSpan timeout ) : |
||
timeout | System.TimeSpan | The timeout. |
Результат |
public static TimeoutAsync ( System.TimeSpan timeout, Func |
||
timeout | System.TimeSpan | The timeout. |
onTimeoutAsync | Func |
An action to call on timeout, passing the execution context, the timeout applied, and a |
Результат |
public static TimeoutAsync ( System.TimeSpan timeout, TimeoutStrategy timeoutStrategy ) : |
||
timeout | System.TimeSpan | The timeout. |
timeoutStrategy | TimeoutStrategy | The timeout strategy. |
Результат |
public static TimeoutAsync ( System.TimeSpan timeout, TimeoutStrategy timeoutStrategy, Func |
||
timeout | System.TimeSpan | The timeout. |
timeoutStrategy | TimeoutStrategy | The timeout strategy. |
onTimeoutAsync | Func |
An action to call on timeout, passing the execution context, the timeout applied, and a |
Результат |
public static TimeoutAsync ( int seconds ) : |
||
seconds | int | The number of seconds after which to timeout. |
Результат |
public static TimeoutAsync ( int seconds, Func |
||
seconds | int | The number of seconds after which to timeout. |
onTimeoutAsync | Func |
An action to call on timeout, passing the execution context, the timeout applied, and a |
Результат |
public static TimeoutAsync ( int seconds, TimeoutStrategy timeoutStrategy ) : |
||
seconds | int | The number of seconds after which to timeout. |
timeoutStrategy | TimeoutStrategy | The timeout strategy. |
Результат |
public static TimeoutAsync ( int seconds, TimeoutStrategy timeoutStrategy, Func |
||
seconds | int | The number of seconds after which to timeout. |
timeoutStrategy | TimeoutStrategy | The timeout strategy. |
onTimeoutAsync | Func |
An action to call on timeout, passing the execution context, the timeout applied, and a |
Результат | TimeoutPolicy |
public WithPolicyKey ( String policyKey ) : Policy | ||
policyKey | String | The unique, used-definable key to assign to this |
Результат | Policy |