Skip to content

Commit 3ea9739

Browse files
committed
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. :)
1 parent 4059ae6 commit 3ea9739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RestSharp/RestClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ IDeserializer GetHandler(string contentType)
261261
/// <example>
262262
/// client.BaseUrl = "http://example.com";
263263
/// </example>
264-
public string BaseUrl
264+
public virtual string BaseUrl
265265
{
266266
get
267267
{

0 commit comments

Comments
 (0)