public Recorder(FileStream stream, Machine machine, RecordingBehaviour recordingBehaviour) { this.stream = stream; this.machine = machine; this.recordingBehaviour = recordingBehaviour; nullifiedHandlersCache = new Dictionary <Delegate, Delegate>(); openStreamSerializer = new Serializer(new Settings(useBuffering: false)).ObtainOpenStreamSerializer(stream); }
public void RecordTo(string fileName, RecordingBehaviour recordingBehaviour) { recorder = new Recorder(File.Create(fileName), this, recordingBehaviour); }