Skip to content

IODataClientFactory.CreateClient<T> requires Uri parameter #346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

woha
Copy link

@woha woha commented Feb 19, 2025

The provided code example does not work.

IODataClientFactory.CreateClient requires an Uri parameter in addition to the client name.

The provided code example does not work.

IODataClientFactory.CreateClient<T> requires an Uri parameter in addition to the client name.
Copy link
Contributor

Learn Build status updates of commit 5944595:

💡 Validation status: suggestions

File Status Preview URL Details
Odata-docs/client/using-extensions.md 💡Suggestion View Details

Odata-docs/client/using-extensions.md

  • Line 112, Column 238: [Suggestion: learn-site-link-broken - See documentation] Link '/odata/client/v7/using-hooks' points to a learn site page that doesn't exist. Check the path or URL and update the link.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@@ -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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants