Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Odata-docs/client/using-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ If an app requires many distinct uses of OData client proxy, each with a differe
services.AddODataClient("TripPin")
.ConfigureODataClient(dsc =>
{
dsc.BaseUri = new Uri("https://services.odata.org/v4/(S(lqbvtwide0ngdev54adgc0lu))/TripPinServiceRW/");

// Github API versioning
dsc.Configurations.Properties.Add("User-Agent", "ODataClientFactory-Sample"));
});
Expand All @@ -99,7 +97,8 @@ public class PeopleController : ODataController
[EnableQuery]
public IEnumerable<Person> Get()
{
var client = _clientFactory.CreateClient<DefaultContainer>("TripPin");
var baseUri = new Uri("https://services.odata.org/v4/(S(lqbvtwide0ngdev54adgc0lu))/TripPinServiceRW/");
var client = _clientFactory.CreateClient<DefaultContainer>(baseUri, "TripPin");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your suggestion is to do this for every action

var people = client.People.Execute();
return people;
}
Expand Down