Skip to content
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

mdd-add-shipping-data-service #607

Open
wants to merge 1 commit into
base: 24.2.x
Choose a base branch
from

Conversation

mddifilippo89
Copy link
Contributor

mdd-add-shipping-data-service

mdd-add-shipping-data-service
@mddifilippo89 mddifilippo89 added the status: 📗 in-review PR ready for review label May 9, 2024
@mddifilippo89 mddifilippo89 requested a review from agoldenbaum May 9, 2024 16:18
public async Task<List<ShippingDataItem>> GetTable()
{
using HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, new Uri("https://www.igniteui.com/api/orders", UriKind.RelativeOrAbsolute));
using HttpResponseMessage response = await _http.SendAsync(request).ConfigureAwait(false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

why adding "using" statements in code-behind and not just declare them above "namespace Infragistics.Samples" ?


public ProductDataService(HttpClient http)
{
_http = http;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why passing HttpClient if you can create it in an constructor of a ShippingDataService?

return new List<ShippingDataItem>();
}
}
public interface IShippingDataService
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this interface really needed?


public async Task<List<ShippingDataItem>> GetTable()
{
using HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, new Uri("https://www.igniteui.com/api/orders", UriKind.RelativeOrAbsolute));
Copy link
Collaborator

Choose a reason for hiding this comment

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

define the Uri as a variable and then pass it to the http request

@HUSSAR-mtrela HUSSAR-mtrela changed the base branch from 23.2.x to 24.1.x July 24, 2024 20:25
@HUSSAR-mtrela HUSSAR-mtrela changed the base branch from 24.1.x to 24.2.x December 3, 2024 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: 📗 in-review PR ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants