Пример #1
0
        static void Main()
        {
            Console.WriteLine("Enter a choice");
            var choice = Console.ReadLine();

            ThumbnailerBase thumbnailer = CreateThumbnailer(choice);

            thumbnailer.GetThumbnail();

            Console.ReadLine();
        }
Пример #2
0
        private static void Main()
        {
            Console.WriteLine("Enter Mime Type");
            var mimeType = Console.ReadLine();

            var mediaInfo = new MediaInfo("Some file name", mimeType, null);

            ThumbnailerBase thumbnailer = ThumbnailerFactory.CreateThumbnailer(mediaInfo.MimeType);

            using (var image = thumbnailer.GetThumbnail(mediaInfo))
            {
            }

            Console.ReadLine();
        }