Esempio n. 1
0
        /// <summary>
        /// Creates an instance of <see cref="MultiGrabber"/> with internal providers registered.
        /// </summary>
        public static MultiGrabber CreateDefault()
        {
            var multiGrabber = new MultiGrabber();

            multiGrabber.Register <YouTubeGrabber>();
            multiGrabber.Register <VimeoGrabber>();
            return(multiGrabber);
        }
Esempio n. 2
0
        /// <summary>
        /// Creates an instance of <see cref="MultiGrabber"/> with internal providers registered.
        /// </summary>
        public static MultiGrabber CreateDefault()
        {
            var multiGrabber = new MultiGrabber();

            multiGrabber.Register <YouTubeGrabber>();
            multiGrabber.Register <InstagramGrabber>();
            multiGrabber.Register <PornHubGrabber>();
            return(multiGrabber);
        }
Esempio n. 3
0
        /// <summary>
        /// Creates an instance of <see cref="MultiGrabber"/> with internal providers registered.
        /// </summary>
        public static MultiGrabber CreateDefault()
        {
            var multiGrabber = new MultiGrabber();

            foreach (var type in DefaultGrabbers.AllTypes)
            {
                multiGrabber.Register(new TypeFactory <IGrabber>(type));
            }
            return(multiGrabber);
        }