-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove static
from Procedure and enable more customization
#6
Comments
Furthermore: var proc = new Procedure<string>(() => { ... });
var breaker = new Hopefully.CircuitBreaker(proc);
var result = breaker.Execute(); Then you could call |
I'd rather have a builder pattern. |
Can you show some example code that demonstrates what you have in mind? Also, I would prefer to leave the static methods there and continue to extend and maintain the static interface - so in theory F# devs can stick to that and still be happy. |
Not right now; maybe tonight. Hold off tonight and I'll send a PR? |
Sounds good to me, we aren't in a hurry. |
Cool. Will include some F# samples/tests. |
I'd like to see
static
taken off of the Procedure class, but the static methods can remain (backwards compatability and convenience). Then you can instantiate a Procedure object and do some customization on it, like so:The text was updated successfully, but these errors were encountered: