Skip to content

Update CrudExamplesTests.cs #8450

New issue

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

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

Already on GitHub? # to your account

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

Conversation

RobinSoenen
Copy link

Small change in the documentation:

var response = await client.IndexAsync(tweet, "my-tweet-index"); // <2>

To
var response = await client.IndexAsync(tweet, (IndexName)"my-tweet-index"); // <2>

in order to avoid an ambiguous call:

error CS0121: The call is ambiguous between the following methods or properties: 'ElasticsearchClient.IndexAsync(TDocument, IndexName, CancellationToken)' and 'ElasticsearchClient.IndexAsync(TDocument, Id?, CancellationToken)'

Small change in the documentation:
 
var response = await client.IndexAsync(tweet, "my-tweet-index"); // <2>

To 
var response = await client.IndexAsync(tweet, (IndexName)"my-tweet-index"); // <2>

in order to avoid an ambiguous call:

error CS0121: The call is ambiguous between the following methods or properties: 'ElasticsearchClient.IndexAsync(TDocument, IndexName, CancellationToken)' and 'ElasticsearchClient.IndexAsync(TDocument, Id?, CancellationToken)'
Copy link

cla-checker-service bot commented Jan 29, 2025

💚 CLA has been signed

@RobinSoenen
Copy link
Author

Contributor agreement signed in the meantime

@RobinSoenen RobinSoenen reopened this Jan 29, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant