Skip to content

Conversation

mddifilippo89
Copy link
Member

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
@HUSSAR-mtrela HUSSAR-mtrela changed the base branch from 24.2.x to 25.1 March 31, 2025 16:15
@HUSSAR-mtrela HUSSAR-mtrela changed the title mdd-add-shipping-data-service Add Shipping Data Service Jul 15, 2025
@HUSSAR-mtrela HUSSAR-mtrela added status: 🛠️ in-development things that are not finished and removed status: 📗 in-review PR ready for review labels Aug 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: 🛠️ in-development things that are not finished
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants