C# Class Polly.Specs.CircuitBreaker.AdvancedCircuitBreakerSpecs

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

Public Methods

Method Description
Dispose ( ) : void

Private Methods

Method Description
Context_should_be_empty_if_execute_not_called_with_any_context_data ( ) : void
Should_be_able_to_handle_a_duration_of_break_of_zero ( ) : void
Should_be_able_to_handle_a_duration_of_timespan_maxvalue ( ) : void
Should_be_able_to_handle_a_failure_threshold_of_one ( ) : void
Should_be_able_to_reset_automatically_opened_circuit_without_specified_duration_passing ( ) : void
Should_call_onbreak_when_breaking_circuit_automatically ( ) : void
Should_call_onbreak_when_breaking_circuit_first_time_but_not_for_subsequent_calls_through_open_circuit ( ) : void
Should_call_onbreak_when_breaking_circuit_manually ( ) : void
Should_call_onbreak_with_the_correct_timespan ( ) : void
Should_call_onbreak_with_the_last_raised_exception ( ) : void
Should_call_onbreak_with_the_passed_context ( ) : void
Should_call_onhalfopen_when_automatically_transitioning_to_halfopen_due_to_state_read ( ) : void
Should_call_onhalfopen_when_automatically_transitioning_to_halfopen_due_to_subsequent_execution ( ) : void
Should_call_onreset_when_automatically_closing_circuit_but_not_when_halfopen ( ) : void
Should_call_onreset_when_manually_resetting_circuit ( ) : void
Should_call_onreset_with_the_passed_context ( ) : void
Should_close_circuit_again_on_reset_after_manual_override ( ) : void
Should_create_new_context_for_each_call_to_execute ( ) : void
Should_execute_action_when_non_faulting_and_cancellationtoken_not_cancelled ( ) : void
Should_execute_func_returning_value_when_cancellationtoken_not_cancelled ( ) : void
Should_halfopen_circuit_after_the_specified_duration_has_passed_with_failures_in_different_windows ( ) : void
Should_halfopen_circuit_after_the_specified_duration_has_passed_with_failures_in_same_window ( ) : void
Should_hold_circuit_open_despite_elapsed_time_if_manual_override_open ( ) : void
Should_honour_and_report_cancellation_during_func_execution ( ) : void
Should_honour_different_cancellationtoken_captured_implicitly_by_action ( ) : void
Should_initialise_to_closed_state ( ) : void
Should_not_call_onreset_on_initialise ( ) : void
Should_not_call_onreset_on_successive_successful_calls ( ) : void
Should_not_execute_action_when_cancellationtoken_cancelled_before_execute ( ) : void
Should_not_open_circuit_if_exceptions_raised_are_not_one_of_the_specified_exceptions ( ) : void
Should_not_open_circuit_if_failure_threshold_and_minimum_threshold_is_equalled_but_last_call_is_success ( ) : void
Should_not_open_circuit_if_failure_threshold_exceeded_but_throughput_threshold_not_met_before_timeslice_expires ( ) : void
Should_not_open_circuit_if_failure_threshold_exceeded_but_throughput_threshold_not_met_before_timeslice_expires_even_if_error_occurring_just_at_the_end_of_the_duration ( ) : void
Should_not_open_circuit_if_failure_threshold_exceeded_but_throughput_threshold_not_met_before_timeslice_expires_even_if_timeslice_expires_only_exactly ( ) : void
Should_not_open_circuit_if_failure_threshold_exceeded_but_throughput_threshold_not_met_before_timeslice_expires_even_if_timeslice_expires_only_exactly_low_samping_duration ( ) : void
Should_not_open_circuit_if_failure_threshold_exceeded_but_throughput_threshold_not_met_before_timeslice_expires_low_samping_duration ( ) : void
Should_not_open_circuit_if_failure_threshold_not_met_and_throughput_threshold_not_met ( ) : void
Should_not_open_circuit_if_failure_threshold_not_met_and_throughput_threshold_not_met_low_samping_duration ( ) : void
Should_not_open_circuit_if_failure_threshold_not_met_but_throughput_threshold_met_before_timeslice_expires ( ) : void
Should_not_open_circuit_if_failure_threshold_not_met_but_throughput_threshold_met_before_timeslice_expires_low_samping_duration ( ) : void
Should_not_open_circuit_if_failures_at_end_of_last_timeslice_and_failures_in_beginning_of_new_timeslice_when_below_minimum_throughput_threshold ( ) : void
Should_not_open_circuit_if_failures_at_end_of_last_timeslice_below_failure_threshold_and_failures_in_beginning_of_new_timeslice_where_total_equals_failure_threshold_low_samping_duration ( ) : void
Should_not_throw_if_timeslice_duration_is_resolution_of_circuit ( ) : void
Should_open_circuit_again_after_the_specified_duration_has_passed_if_the_next_call_raises_an_exception ( ) : void
Should_open_circuit_and_block_calls_if_manual_override_open ( ) : void
Should_open_circuit_blocking_executions_and_noting_the_last_raised_exception_if_failure_threshold_exceeded_and_throughput_threshold_equalled_within_timeslice_in_same_window ( ) : void
Should_open_circuit_if_failures_at_end_of_last_timeslice_below_failure_threshold_and_failures_in_beginning_of_new_timeslice_where_total_equals_failure_threshold ( ) : void
Should_open_circuit_if_failures_in_second_window_of_last_timeslice_and_failures_in_first_window_in_next_timeslice_exceeds_failure_threshold_and_minimum_threshold ( ) : void
Should_open_circuit_with_the_last_raised_exception_if_failure_threshold_equalled_and_throughput_threshold_equalled_even_if_only_just_within_timeslice ( ) : void
Should_open_circuit_with_the_last_raised_exception_if_failure_threshold_equalled_and_throughput_threshold_equalled_even_if_only_just_within_timeslice_low_samping_duration ( ) : void
Should_open_circuit_with_the_last_raised_exception_if_failure_threshold_equalled_and_throughput_threshold_equalled_within_timeslice_in_different_windows ( ) : void
Should_open_circuit_with_the_last_raised_exception_if_failure_threshold_equalled_and_throughput_threshold_equalled_within_timeslice_in_same_window ( ) : void
Should_open_circuit_with_the_last_raised_exception_if_failure_threshold_equalled_and_throughput_threshold_equalled_within_timeslice_low_samping_duration ( ) : void
Should_open_circuit_with_the_last_raised_exception_if_failure_threshold_exceeded_and_throughput_threshold_equalled_within_timeslice_in_different_windows ( ) : void
Should_open_circuit_with_the_last_raised_exception_if_failure_threshold_exceeded_and_throughput_threshold_equalled_within_timeslice_low_samping_duration ( ) : void
Should_open_circuit_with_the_last_raised_exception_if_failure_threshold_exceeded_though_not_all_are_failures_and_throughput_threshold_equalled_within_timeslice_in_different_windows ( ) : void
Should_open_circuit_with_the_last_raised_exception_if_failure_threshold_exceeded_though_not_all_are_failures_and_throughput_threshold_equalled_within_timeslice_in_same_window ( ) : void
Should_open_circuit_with_the_last_raised_exception_if_failure_threshold_exceeded_though_not_all_are_failures_and_throughput_threshold_equalled_within_timeslice_low_samping_duration ( ) : void
Should_open_circuit_with_timespan_maxvalue_if_manual_override_open ( ) : void
Should_report_cancellation_during_faulting_action_execution_when_user_delegate_observes_cancellationtoken ( ) : void
Should_report_cancellation_during_otherwise_non_faulting_action_execution_when_user_delegate_observes_cancellationtoken ( ) : void
Should_report_cancellation_when_both_open_circuit_and_cancellation ( ) : void
Should_report_faulting_from_faulting_action_execution_when_user_delegate_does_not_observe_cancellation ( ) : void
Should_reset_circuit_after_the_specified_duration_has_passed_if_the_next_call_does_not_raise_an_exception ( ) : void
Should_throw_if_duration_of_break_is_less_than_zero ( ) : void
Should_throw_if_failure_threshold_is_greater_than_one ( ) : void
Should_throw_if_failure_threshold_is_less_than_zero ( ) : void
Should_throw_if_failure_threshold_is_zero ( ) : void
Should_throw_if_minimum_throughput_is_less_than_one ( ) : void
Should_throw_if_minimum_throughput_is_one ( ) : void
Should_throw_if_timeslice_duration_is_less_than_resolution_of_circuit ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void