Last active
December 4, 2018 17:26
-
-
Save Mirch/e9ba929111ed39e4df4f6fb96be84eba 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
public class Destination | |
{ | |
public string Uri { get; set; } | |
public bool RequiresAuthentication { get; set; } | |
static HttpClient client = new HttpClient(); | |
public Destination(string uri, bool requiresAuthentication) | |
{ | |
Uri = path; | |
RequiresAuthentication = requiresAuthentication; | |
} | |
public Destination(string uri) | |
:this(uri, false) | |
{ | |
} | |
private Destination() | |
{ | |
Uri = "/"; | |
RequiresAuthentication = false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What do you think about to refactor this code in the following manner: