Class OrderDebuggingInfoService
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
Provides read and write access to the debugging information logged against orders.
public class OrderDebuggingInfoService
- Inheritance
-
OrderDebuggingInfoService
- Inherited Members
Methods
GetByOrderAutoId(int)
Gets the debugging info entries for the order with the specified auto id.
public virtual IEnumerable<OrderDebuggingInfo> GetByOrderAutoId(int orderAutoId)
Parameters
orderAutoIdintThe order auto id.
Returns
GetByOrderId(string)
Gets the debugging info entries for the order with the specified id.
public virtual IEnumerable<OrderDebuggingInfo> GetByOrderId(string orderId)
Parameters
orderIdstringThe order id.
Returns
- IEnumerable<OrderDebuggingInfo>
The entries logged for the order, or an empty sequence if the order does not exist.
GetByRecurringOrderId(int)
Gets the entries logged for orders belonging to the specified recurring order.
public virtual IEnumerable<OrderDebuggingInfo> GetByRecurringOrderId(int recurringOrderId)
Parameters
recurringOrderIdintThe recurring order id.
Returns
GetBySavedCardId(int)
Gets the entries logged for orders paid with the specified saved card.
public virtual IEnumerable<OrderDebuggingInfo> GetBySavedCardId(int savedCardId)
Parameters
savedCardIdintThe saved card id.
Returns
GetBySearch(OrderDebuggingInfoSearchFilter)
Gets the entries matching the specified search filter.
public virtual IEnumerable<OrderDebuggingInfo> GetBySearch(OrderDebuggingInfoSearchFilter searchFilter)
Parameters
searchFilterOrderDebuggingInfoSearchFilterThe filter to match entries against.
Returns
GetCountByRecurringOrderId(int)
Gets the number of entries logged for orders belonging to the specified recurring order.
public virtual int GetCountByRecurringOrderId(int recurringOrderId)
Parameters
recurringOrderIdintThe recurring order id.
Returns
GetCountBySavedCardId(int)
Gets the number of entries logged for orders paid with the specified saved card.
public virtual int GetCountBySavedCardId(int savedCardId)
Parameters
savedCardIdintThe saved card id.
Returns
GetFirstInfoByOrderId(string)
Gets the first entry logged for the order with the specified id.
public virtual OrderDebuggingInfo? GetFirstInfoByOrderId(string orderId)
Parameters
orderIdstringThe order id.
Returns
- OrderDebuggingInfo
The first entry, or
nullif nothing was logged for the order.
Save(Order, string, string)
Logs a debugging info entry for the specified order.
public virtual void Save(Order order, string message, string source)
Parameters
orderOrderThe order the entry belongs to.
messagestringThe message to log.
sourcestringThe name of the component logging the entry.
Save(Order, string, string, DebuggingInfoType)
Logs a debugging info entry of the given type for the specified order.
public virtual void Save(Order order, string message, string source, DebuggingInfoType infoType)
Parameters
orderOrderThe order the entry belongs to.
messagestringThe message to log.
sourcestringThe name of the component logging the entry.
infoTypeDebuggingInfoTypeThe type of entry to log.
Save(OrderDebuggingInfo)
Saves a debugging info entry to the database.
public virtual void Save(OrderDebuggingInfo debuggingInfo)
Parameters
debuggingInfoOrderDebuggingInfoThe entry to save.
Exceptions
- ArgumentNullException
Thrown when
debuggingInfoisnull.