Esempio n. 1
0
        IEnumerator <ITask> ReplaceHandler(Replace replace)
        {
            _state = replace.Body;
            replace.ResponsePort.Post(DefaultReplaceResponseType.Instance);

            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);
            }

            yield break;
        }
Esempio n. 2
0
        static public SaveStreamPort Create(string filename, double quality, DispatcherQueue queue)
        {
            SaveStream save = new SaveStream(filename, quality, queue);

            return(save._port);
        }