.NET SDK has a feature that lets you monitor the amount of time spent by a call at each phase. This is a great utility to help you identify performance bottlenecks.
Detailed Description
Here is a sample C# code using .NET SDK to enable logging call metrics:
using System; using eBay.Service.Call; using eBay.Service.Core.Sdk; using eBay.Service.Util; using eBay.Service.Core.Soap;
namespace SDK3Examples {
public class AddItem {
public ApiLogger logger; public CallMetricsTable metrics;
public void GeteBayOfficialTime() { GeteBayOfficialTimeCall apicall = new GeteBayOfficialTimeCall(GetContext); apicall.GeteBayOfficialTime(); //log the metrics for the call metrics.GenerateReport(logger); }
public ApiContext GetContext() { ApiContext context = new ApiContext();
// Credentials for the call context.ApiCredential.eBayToken = 'token';
// Set the URL context.SoapApiServerUrl = 'https://api.sandbox.ebay.com/wsapi';