Compartir vía


commerceEvent Element

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

The commerceEvent element is used to configure the commerce events available for logging to the IIS Web server log.

The default supported events are AddItemToBasketEvent, RemoveItemFromBasketEvent, and SubmitOrderEvent.

The commerceEvent element contains only the add subelement.

add Element

The add element specifies a new commerce event.

The following table lists and describes the attributes of the add element.

Attribute

Data Type

Description

className

String

The name of the event class. To configure a Commerce Server event, use the full class name that includes the namespace. To configure a custom event, use the fully qualified class name that includes the assembly.

id

String

Unique identifier for the event.

loggingEnabled

String

Specifies whether logging is enabled.

Example

<commerceEvent>
    <add
      className="Microsoft.CommerceServer.Runtime.AddItemToBasketEvent"
      id="AddItemToBasket" />
    <add 
      className="Microsoft.CommerceServer.Runtime.SubmitOrderEvent" 
      id="SubmitOrder" loggingEnabled="true" />
    <add className="MyCompany.MyEvent, MyEvent, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ff055cf898307e8" 
        id="MyEvent" loggingEnabled="true" />
</commerceEvent>

See Also

Other Resources

Web.Config Configuration Settings