Поделиться через


How to Create a New Orders Pipeline Component

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

Commerce Server pipelines provide an infrastructure for running a sequence of pipeline components. Although Commerce Server provides many pipeline components for performing standard business functions, you might have to write your own pipeline components to meet the needs of your business. For more information about pipelines, see Developing with Pipelines.

The Orders System uses the following pipelines:

  • The basket pipeline checks whether information about each item, such as price or availability, has changed since the user added the item to the shopping cart.

  • The total pipeline divides the order into shipments and calculates the total price of the order.

  • The checkout pipeline processes the payments and completes the checkout process.

If you need to customize any of these processes, you can add or remove pipeline components that Commerce Server provides. If a built-in component is not suited, you can create your own pipeline component.

The following procedure provides an overview of the steps that you must follow to create a new pipeline component. For detailed instructions about performing each step, see How to Build Pipeline Components Using C#.

To create an Orders pipeline component

  1. Create a new Visual Studio 2005 or Visual Studio 2008 class library project and configure it to register with COM, include the correct references, and add the correct using directives.

  2. Provide the correct attributes for your new pipeline class.

  3. Implement and build your pipeline component.

  4. Register your pipeline component with Commerce Server, including establishment of its pipeline stage affinity.

  5. Deploy your pipeline component to the Commerce Server computer or computers on which it will run.

See Also

Other Resources

Building Pipeline Components

Orders System Pipelines

Orders System Design-Time Scenarios