question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

State Change Events question

See original GitHub issue

Is there a specific reason the ICircuitBreakerEvents interface isn’t used or implemented anywhere? I was thinking about adding support for the state change events to CircuitBreaker, but wanted to see why they weren’t there first. Thank you.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alexandrnikitincommented, May 18, 2017

The easiest way is to inject some logic into try catch block 😄 But using events or an interface is indeed a more reliable way to do it. Another option is to expose ICircuitBreakerSwitch via construction or a builder class. (and other interfaces too ie ICircuitBreakerInvoker, ICircuitBreakerState)

0reactions
alexandrnikitincommented, May 19, 2017

@LBreedlove I’ve just published v0.6.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

RTCIceTransport: statechange event - Web APIs | MDN
A statechange event occurs when the RTCIceTransport changes state. The state can be used to determine how far through the process of ...
Read more >
MIDIPort: statechange event - Web APIs | MDN
The statechange event of the MIDIPort interface is fired when a port changes from open to closed, or closed to open.
Read more >
events can cause state change? - solidity
This answer might clarify it alongside this one. In essence, transactions receipts (containing the logs) are used to form the Transaction ...
Read more >
microservices - Events for entity state changes
The problem I run into is when I have consumers that care when any of a set of attributes change. I could have...
Read more >
c# - TChannel state change events?
The instance you get back from CreateChannel implements TChannel but also IClientChannel which has state changed events like Closed ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found