C# Class Polly.Specs.CircuitBreaker.CircuitBreakerTResultSpecs

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_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_handled_result ( ) : 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_halfopen_circuit_after_the_specified_duration_has_passed ( ) : void
Should_hold_circuit_open_despite_elapsed_time_if_manual_override_open ( ) : 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_result_returned_does_not_match_any_of_the_result_predicates ( ) : void
Should_not_open_circuit_if_result_returned_does_not_match_result_predicate ( ) : void
Should_not_open_circuit_if_result_returned_is_not_one_of_the_handled_results ( ) : void
Should_not_open_circuit_if_result_returned_is_not_the_handled_result ( ) : void
Should_not_open_circuit_if_specified_number_of_specified_handled_result_are_not_raised_consecutively ( ) : void
Should_open_circuit_again_after_the_specified_duration_has_passed_if_the_next_call_raises_a_fault ( ) : void
Should_open_circuit_and_block_calls_if_manual_override_open ( ) : void
Should_open_circuit_with_the_last_handled_result_after_specified_number_of_one_of_the_specified_handled_results_have_been_raised ( ) : void
Should_open_circuit_with_the_last_handled_result_after_specified_number_of_specified_handled_result_have_been_returned ( ) : void
Should_open_circuit_with_the_last_handled_result_after_specified_number_of_specified_handled_result_with_predicate_have_been_returned ( ) : 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_return_a_fault ( ) : void
Should_throw_if_duration_of_break_is_less_than_zero ( ) : void
Should_throw_if_faults_allowed_before_breaking_is_less_than_one ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void