Last active
June 8, 2019 13:27
-
-
Save alistairjevans/d1d6fdb451d056af714e59fe85522867 to your computer and use it in GitHub Desktop.
New hub
This file contains 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 class FeedHub : Hub | |
{ | |
private readonly IMachineState machineState; | |
private readonly ISampleWriter sampleWriter; | |
public FeedHub(IMachineState machineState, ISampleWriter sampleWriter) | |
{ | |
this.machineState = machineState; | |
this.sampleWriter = sampleWriter; | |
} | |
public void ResetCount() | |
{ | |
// Reset the state, and start a new data file | |
machineState.ZeroCount(); | |
sampleWriter.StartNewFile(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment