public void Init()
 {
     try
     {
         appHost = new AppHost();
         appHost.Init();
         EndpointHost.Config.DebugMode = true;
         appHost.Start("http://*:1337/");
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }
예제 #2
0
 public void Init()
 {
     try
     {
         appHost = new AppHost();
         appHost.Init();
         appHost.Config.DebugMode = true;
         appHost.Start("http://*:1337/");
     }
     catch (Exception ex)
     {
         ex.ToString().Print();
     }
 }
예제 #3
0
 public void Init()
 {
     try
     {
         appHost = new AppHost();
         appHost.Init();
         appHost.Config.DebugMode = true;
         appHost.Start(Config.ListeningOn);
     }
     catch (Exception ex)
     {
         ex.ToString().Print();
     }
 }
예제 #4
0
 public void Init()
 {
     try
     {
         LogManager.LogFactory = null;
         appHost = new AppHost();
         appHost.Init();
         appHost.Start(Config.ListeningOn);
         appHost.Config.DebugMode = true;
     }
     catch (Exception ex)
     {
         ex.ToString().Print();
     }
 }
예제 #5
0
        public void Can_start_Listener_and_call_GetFactorial_WebService()
        {
            var appHost = new AppHost();

            appHost.Init();
            appHost.Start(ListeningOn);

            System.Console.WriteLine("AppHost Created at {0}, listening on {1}",
                                     DateTime.Now, ListeningOn);

            var client  = new XmlServiceClient(ListeningOn);
            var request = new GetFactorial {
                ForNumber = 3
            };
            var response = client.Send <GetFactorialResponse>(request);

            Assert.That(response.Result, Is.EqualTo(GetFactorialService.GetFactorial(request.ForNumber)));
        }
예제 #6
0
 public ExceptionHandlingTestsAsync()
 {
     appHost = new AppHost();
     appHost.Init();
     appHost.Start(Config.ListeningOn);
 }
 public void TestFixtureSetUp()
 {
     appHost = new AppHost();
     appHost.Init();
     appHost.Start(Config.AbsoluteBaseUri);
 }
 public void OnTestFixtureSetUp()
 {
     appHost = new AppHost();
     appHost.Init();
     appHost.Start(Config.ListeningOn);
 }