Esempio n. 1
0
        }   // Unused, but required to handle a video stream.

        private void WriteStreamToFile()
        {
            string directory = this.FileDirectory.TrimEnd('/');
            string filename  = DateTime.Now.ToString(this.FileDateTimeFormat);
            string pathname  = $"{directory}/{filename}.{this.FileExtension}";

            using (var fs = new FileStream(pathname, FileMode.Create, FileAccess.Write))
            {
                CurrentStream.WriteTo(fs);
            }

            this.MostRecentFilename = filename;
            this.MostRecentPathname = pathname;
        }