Created
October 31, 2022 10:16
-
-
Save jindeveloper/e7182a49203eb026a8ea0dc15ce916a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
var myUrl = new MyURL(); | |
//prints out https://localhost:8080/myCustomer | |
Console.WriteLine($"{myUrl}"); | |
return 0; | |
public class MyURL | |
{ | |
private const string protocol = "https"; | |
private const string host = "localhost"; | |
private const string port = "8080"; | |
private const string tenant = "myCustomer"; | |
//e.g. result {{protocol:}}//{host:{{port}}}/{{tenant}} | |
private const string devScheme = protocol + "://" + host + ":" + port + "/" + tenant; | |
public override string ToString() => devScheme; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment