Exemple #1
0
 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);
 }
Exemple #2
0
 public void RecordTo(string fileName, RecordingBehaviour recordingBehaviour)
 {
     recorder = new Recorder(File.Create(fileName), this, recordingBehaviour);
 }