Beispiel #1
0
 private static string GetServerAddress()
 {
     try {
         return(new UriBuilder(ServerConfiguration.ReadConfiguration().ServerAddress).ToString());
     }
     catch (Exception) {
         throw new ArgumentException("Некорректный адрес сервера");
     }
 }
Beispiel #2
0
 public static void RunServer()
 {
     CreateHttpServer().Run(ServerConfiguration.ReadConfiguration().ServerAddress);
 }