Beispiel #1
0
        static void Main(string[] args)
        {
            var server = new FluxServer(3589);

            server.Start(App);
            Console.WriteLine(@"Flux listening on port 3589. Press Enter to stop...");
            Console.ReadLine();
            server.Stop();
        }
Beispiel #2
0
        public void OwinServerWorks()
        {
            var server = new FluxServer(Port);
            var task   = Task.Run(() => server.Start(App));

            try
            {
                SendHttpRequest();
            }
            finally
            {
                server.Stop();
            }
            Assert.True(_appCalled);
            Assert.Equal(Properties.Resources.ServerTestHtml, _result);
        }