private static void Main(string[] args) { var appHost = new AppSelfHost() .Init() .Start("http://127.0.0.1:2222/"); Process.Start("http://127.0.0.1:2222/"); Console.ReadLine(); }
private static void Main(string[] args) { var appHost = new AppSelfHost() .Init() .Start("http://localhost/TestSite/"); Process.Start("http://localhost/TestSite/"); Console.ReadLine(); }
private static void Main(string[] args) { var baseUrl = "http://localhost:8000/"; var appHost = new AppSelfHost() .Init() .Start(baseUrl); Console.WriteLine(baseUrl); Process.Start(baseUrl); Console.ReadLine(); }
private static void Main(string[] args) { var appHost = new AppSelfHost(); appHost.Init(); appHost.Start("http://127.0.0.1:1234/"); Thread.Sleep(2500); var client = new JsonServiceClient("http://127.0.0.1:1234/") { AlwaysSendBasicAuthHeader = true, UserName = "******", Password = "******" }; var post1 = client.Post(new TestRequest()); var post2 = client.Post(new TestRequest()); var response = "First response: {0}, Second Response: {1}".Fmt(post1, post2); Console.Out.WriteLine(response); Console.Read(); }
public void TestFixtureSetUp() { appHost = new AppSelfHost(); appHost.Init().Start(BaseUrl); }