Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Made BaseUrl property virtual
I have a settings object that is the one true source for `BaseUrl`. I'd rather avoid having to observe changes to that object in order to set the `BaseUrl` property on the `RestClient`. Instead, I have a derived `MyRestClient` that sets `BaseUrl` to the value of my settings object. If `BaseUrl` is virtual, I can do this. :)
  • Loading branch information
haacked committed Jul 18, 2012
1 parent 4059ae6 commit 3ea9739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RestSharp/RestClient.cs
Expand Up @@ -261,7 +261,7 @@ IDeserializer GetHandler(string contentType)
/// <example>
/// client.BaseUrl = "http://example.com";
/// </example>
public string BaseUrl
public virtual string BaseUrl
{
get
{
Expand Down

0 comments on commit 3ea9739

Please sign in to comment.