我开发了一个带有angularjs 1.6和c#.net的OWIN自我主机webApi应用程序。能够在我的LOCAL LAN网络上访问我的应用程序但不幸的是我缺乏通过互联网设置“自托管webApi”应用程序的知识,并且正在努力在互联网上工作。我正在寻求一些帮助。 `
static void Main()
{
bool first = false;
m = new Mutex(true, Application.ProductName.ToString(), out first);
if ((first))
{
// Specify the URI to use for the local host:
string baseUri = "http://*:8757";
Console.WriteLine("Starting web Server...");
WebApp.Start<Startup>(baseUri);
//MessageBox.Show("Server running at {0} - press Enter to quit. ", baseUri);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainWindow());
}
else
{
MessageBox.Show(" Cannot start another instance of server !!!!!!!" + " ." + " " + "Server is running........");
}
}
`