public void ReplaceHandler(Replace replace) { _state = replace.Body; replace.ResponsePort.Post(DefaultReplaceResponseType.Instance); #if !URT_MINCLR SendNotification(_submgrPort, replace); if (_streamPort != null) { _streamPort.Post(new Shutdown()); _streamPort = null; } if (!string.IsNullOrEmpty(_state.CaptureFile)) { _streamPort = SaveStream.Create(_state.CaptureFile, _state.Quality, _queue); } #else SendNotification(replace); #endif }
static public SaveStreamPort Create(string filename, double quality, DispatcherQueue queue) { SaveStream save = new SaveStream(filename, quality, queue); return(save._port); }