Table of Contents

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

orderAutoId int

The order auto id.

Returns

IEnumerable<OrderDebuggingInfo>

GetByOrderId(string)

Gets the debugging info entries for the order with the specified id.

public virtual IEnumerable<OrderDebuggingInfo> GetByOrderId(string orderId)

Parameters

orderId string

The 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

recurringOrderId int

The recurring order id.

Returns

IEnumerable<OrderDebuggingInfo>

GetBySavedCardId(int)

Gets the entries logged for orders paid with the specified saved card.

public virtual IEnumerable<OrderDebuggingInfo> GetBySavedCardId(int savedCardId)

Parameters

savedCardId int

The saved card id.

Returns

IEnumerable<OrderDebuggingInfo>

GetBySearch(OrderDebuggingInfoSearchFilter)

Gets the entries matching the specified search filter.

public virtual IEnumerable<OrderDebuggingInfo> GetBySearch(OrderDebuggingInfoSearchFilter searchFilter)

Parameters

searchFilter OrderDebuggingInfoSearchFilter

The filter to match entries against.

Returns

IEnumerable<OrderDebuggingInfo>

GetCountByRecurringOrderId(int)

Gets the number of entries logged for orders belonging to the specified recurring order.

public virtual int GetCountByRecurringOrderId(int recurringOrderId)

Parameters

recurringOrderId int

The recurring order id.

Returns

int

GetCountBySavedCardId(int)

Gets the number of entries logged for orders paid with the specified saved card.

public virtual int GetCountBySavedCardId(int savedCardId)

Parameters

savedCardId int

The saved card id.

Returns

int

GetFirstInfoByOrderId(string)

Gets the first entry logged for the order with the specified id.

public virtual OrderDebuggingInfo? GetFirstInfoByOrderId(string orderId)

Parameters

orderId string

The order id.

Returns

OrderDebuggingInfo

The first entry, or null if 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

order Order

The order the entry belongs to.

message string

The message to log.

source string

The 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

order Order

The order the entry belongs to.

message string

The message to log.

source string

The name of the component logging the entry.

infoType DebuggingInfoType

The type of entry to log.

Save(OrderDebuggingInfo)

Saves a debugging info entry to the database.

public virtual void Save(OrderDebuggingInfo debuggingInfo)

Parameters

debuggingInfo OrderDebuggingInfo

The entry to save.

Exceptions

ArgumentNullException

Thrown when debuggingInfo is null.

To top