Created
December 23, 2013 14:58
-
-
Save andreabalducci/8098479 to your computer and use it in GitHub Desktop.
NEvenstore Null Commit Dispatcher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class NullDispatchSchedulerWireupExtensions | |
| { | |
| public static NullDispatchSchedulerWireup DoNotDispatchCommits(this Wireup wireup) | |
| { | |
| return new NullDispatchSchedulerWireup(wireup); | |
| } | |
| } | |
| public class NullDispatchSchedulerWireup : Wireup | |
| { | |
| public NullDispatchSchedulerWireup(Wireup wireup) | |
| : base(wireup) | |
| { | |
| Container.Register<IScheduleDispatches>(c=> new NullDispatchScheduler()); | |
| } | |
| } | |
| public class NullDispatchScheduler : IScheduleDispatches | |
| { | |
| public void Dispose() | |
| { | |
| } | |
| public void ScheduleDispatch(ICommit commit) | |
| { | |
| } | |
| public void Start() | |
| { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is in NES now, as NoopDispatchScheduler :)