C# Class Polly.Specs.Retry.WaitAndRetryAsyncSpecs

Inheritance: IDisposable
ファイルを表示 Open project: App-vNext/Polly

Public Methods

Method Description
Dispose ( ) : void
WaitAndRetryAsyncSpecs ( ) : System

Private Methods

Method Description
Context_should_be_empty_if_execute_not_called_with_any_data ( ) : void
Should_calculate_retry_timespans_from_current_retry_attempt_and_timespan_provider ( ) : void
Should_call_onretry_on_each_retry_with_the_current_exception ( ) : void
Should_call_onretry_on_each_retry_with_the_current_retry_count ( ) : void
Should_call_onretry_on_each_retry_with_the_current_timespan ( ) : void
Should_call_onretry_with_the_passed_context ( ) : void
Should_create_new_context_for_each_call_to_execute ( ) : void
Should_create_new_state_for_each_call_to_policy ( ) : void
Should_execute_action_when_non_faulting_and_cancellationtoken_not_cancelled ( ) : void
Should_execute_all_tries_when_faulting_and_cancellationtoken_not_cancelled ( ) : void
Should_execute_func_returning_value_when_cancellationtoken_not_cancelled ( ) : void
Should_honour_and_report_cancellation_during_func_execution ( ) : void
Should_honour_cancellation_immediately_during_wait_phase_of_waitandretry ( ) : void
Should_not_call_onretry_when_no_retries_are_performed ( ) : void
Should_not_call_onretry_when_retry_count_is_zero ( ) : void
Should_not_execute_action_when_cancellationtoken_cancelled_before_execute ( ) : void
Should_not_sleep_if_no_retries ( ) : void
Should_not_throw_when_one_of_the_specified_exception_predicates_are_satisfied ( ) : void
Should_not_throw_when_one_of_the_specified_exceptions_thrown_less_number_of_times_than_there_are_sleep_durations ( ) : void
Should_not_throw_when_one_of_the_specified_exceptions_thrown_same_number_of_times_as_there_are_sleep_durations ( ) : void
Should_not_throw_when_specified_exception_predicate_is_satisfied ( ) : void
Should_not_throw_when_specified_exception_thrown_less_number_of_times_than_there_are_sleep_durations ( ) : void
Should_not_throw_when_specified_exception_thrown_same_number_of_times_as_there_are_sleep_durations ( ) : void
Should_report_cancellation_after_faulting_action_execution_and_cancel_further_retries_if_onRetry_invokes_cancellation ( ) : void
Should_report_cancellation_during_faulting_initial_action_execution_and_cancel_further_retries_when_user_delegate_does_not_observe_cancellationtoken ( ) : void
Should_report_cancellation_during_faulting_initial_action_execution_and_cancel_further_retries_when_user_delegate_observes_cancellationtoken ( ) : void
Should_report_cancellation_during_faulting_last_retry_execution_when_user_delegate_does_observe_cancellationtoken ( ) : void
Should_report_cancellation_during_faulting_retried_action_execution_and_cancel_further_retries_when_user_delegate_does_not_observe_cancellationtoken ( ) : void
Should_report_cancellation_during_faulting_retried_action_execution_and_cancel_further_retries_when_user_delegate_observes_cancellationtoken ( ) : void
Should_report_cancellation_during_otherwise_non_faulting_action_execution_and_cancel_further_retries_when_user_delegate_observes_cancellationtoken ( ) : void
Should_report_faulting_from_faulting_last_retry_execution_when_user_delegate_does_not_observe_cancellation_raised_during_last_retry ( ) : void
Should_sleep_for_the_specified_duration_each_retry_when_specified_exception_thrown_less_number_of_times_than_there_are_sleep_durations ( ) : void
Should_sleep_for_the_specified_duration_each_retry_when_specified_exception_thrown_more_number_of_times_than_there_are_sleep_durations ( ) : void
Should_sleep_for_the_specified_duration_each_retry_when_specified_exception_thrown_same_number_of_times_as_there_are_sleep_durations ( ) : Task
Should_throw_when_exception_thrown_is_not_one_of_the_specified_exception_types ( ) : void
Should_throw_when_exception_thrown_is_not_the_specified_exception_type ( ) : void
Should_throw_when_none_of_the_specified_exception_predicates_are_satisfied ( ) : void
Should_throw_when_one_of_the_specified_exceptions_are_thrown_more_times_than_there_are_sleep_durations ( ) : void
Should_throw_when_onretry_action_is_null_without_context ( ) : void
Should_throw_when_onretry_action_is_null_without_context_when_using_provider_overload ( ) : void
Should_throw_when_retry_count_is_less_than_zero_without_context ( ) : void
Should_throw_when_sleep_duration_provider_is_null_without_context ( ) : void
Should_throw_when_sleep_durations_is_null_without_context ( ) : void
Should_throw_when_specified_exception_predicate_is_not_satisfied ( ) : void
Should_throw_when_specified_exception_thrown_more_times_than_there_are_sleep_durations ( ) : void
Should_wait_asynchronously_for_async_onretry_delegate ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

WaitAndRetryAsyncSpecs() public method

public WaitAndRetryAsyncSpecs ( ) : System
return System