コード例 #1
0
 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);
 }
コード例 #8
0
 public void OnTestFixtureSetUp()
 {
     appHost = new AppHost();
     appHost.Init();
     appHost.Start(Config.ListeningOn);
 }