Exemplo n.º 1
0
        public HelloModule(StreamServer streamServer)
        {
            _streamServer = streamServer;

            Get["/"] = parameters => "Hello World";
            Get["/live-image/start"] = StartLiveImage;
            Get["/live-image/stop"]  = StopLiveImage;
            Get["/live-simulation"]  = SimulateLiveImage;
        }
Exemplo n.º 2
0
        protected override void ConfigureApplicationContainer(TinyIoCContainer container)
        {
            base.ConfigureApplicationContainer(container);
            List <String> images = new List <String>()
            {
                "D:\\pictures\\1.png",
                "D:\\pictures\\2.png",
                "D:\\pictures\\3.png",
                "D:\\pictures\\4.png",
                "D:\\pictures\\5.png",
                "D:\\pictures\\6.png",
            };

            _streamServer = new JpegStreamServer();

            container.Register <StreamServer>(_streamServer);
        }