Would it make sense to expose the IScheduler instance in NetDaemonScheduler? #927
Replies: 2 comments
-
Seems like we do not really monitor the discussions on GitHub ;-) The INetDaemonScheduler does little that cannot also be done via the reactivex IScheduler, so we mainly keep it around for backwards compatibility. |
Beta Was this translation helpful? Give feedback.
0 replies
-
No worries Frank, it's been a while since I wrote this and everything is working on my end so evidently it's not a big deal! Thanks for getting back to me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Perhaps this is best framed through my use case...
It is necessary to pass in IScheduler when using
entity.StateChanges().WhenStateIsFor(...)
. However mostly I am using the INetDaemonScheduler in my constructors, so at the moment it is necessary to pass in both the INetDaemonScheduler and IScheduler to my apps in order to useWhenStateIsFor()
. HoweverINetDaemonScheduler
contains a reference toIScheduler
that is private, would it make sense to make this public so that I can just use that instance instead? For example:instead of:
I'm not sure of the advantages/disadvantages of either solution other than the first is neater, hence the discussion!
Beta Was this translation helpful? Give feedback.
All reactions