本文整理汇总了C#中Connector.Send方法的典型用法代码示例。如果您正苦于以下问题:C# Connector.Send方法的具体用法?C# Connector.Send怎么用?C# Connector.Send使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Connector
的用法示例。
在下文中一共展示了Connector.Send方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Search
public static response<body_order_search> Search(Connector aConnection, Enums.OrderSearchField aSearchField, string aValue)
{
return aConnection.Send<response<body_order_search>>(Enums.HttpVerbs.Get, Routes.OrderSearch(aSearchField, aValue));
}
示例2: Post
/// <summary>
/// Submits a new order to NETXUSA
/// </summary>
public static response<body_order> Post(Connector aConnection, order anOrder)
{
return aConnection.Send<order, response<body_order>>(Enums.HttpVerbs.Post, Routes.OrderPost(), anOrder);
}
示例3: Delete
/// <summary>
/// NETXUSA uses the DELETE method to cancel an order. It does not delete it, but instead attempts to change the status to canceled.
/// </summary>
public static response<body_order> Delete(Connector aConnection, int orderId)
{
return aConnection.Send<response<body_order>>(Enums.HttpVerbs.Delete, Routes.OrderDelete(orderId));
}
示例4: Get
/// <summary>
/// Lookup an existing order by NETXUSA's order ID.
/// </summary>
public static response<body_order> Get(Connector aConnection, int orderId)
{
return aConnection.Send<response<body_order>>(Enums.HttpVerbs.Get, Routes.OrderGet(orderId));
}
示例5: Get
/// <summary>
/// Lookup an existing product by NETXUSA's manufacturer name and part number.
/// </summary>
public static response<body_product> Get(Connector aConnection, string manufacturer, string partNumber)
{
return aConnection.Send<response<body_product>>(Enums.HttpVerbs.Get, Routes.ProductGet(manufacturer, partNumber));
}