다음을 통해 공유


PipelineInfo Constructor (String, OrderPipelineType)

Initializes a new instance of the PipelineInfo class using the specified pipeline name and pipeline type

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Sub New ( _
    pipelineName As String, _
    pipelineType As OrderPipelineType _
)
'Usage
Dim pipelineName As String
Dim pipelineType As OrderPipelineType

Dim instance As New PipelineInfo(pipelineName, _
    pipelineType)
public PipelineInfo(
    string pipelineName,
    OrderPipelineType pipelineType
)
public:
PipelineInfo(
    String^ pipelineName, 
    OrderPipelineType pipelineType
)
public function PipelineInfo(
    pipelineName : String, 
    pipelineType : OrderPipelineType
)

Parameters

  • pipelineName
    Type: System..::.String
    The name of the pipeline. This is also the name of the corresponding pipeline file.

Exceptions

Exception Condition
ArgumentNullException

pipelineName is nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentException

The pipeline with the specified name is not configured for this site

CommerceModuleDependencyException

If a required http module is not configured. This exception is raised only in case of web application.

ArgumentException

If the message manager section is not configured. This exception is raised only in case of web application.

Remarks

This constructor attempts to tailor its behavior according to the name of the pipeline. The case-insensitive name strings 'total' and 'basket' are compared to the name of the pipeline supplied to this constructor to determine behavior. You should use the PipelineInfo(string, OrderPipelineType) constructor for cases where you have changed the default pipeline names.

This constructor sets the CacheManager, CatalogManager, ProfileService, and MessageManager keys for all pipelines, and initializes PipelineInfo.Language to CultureInfo.CurrentUICulture. It also sets the catalog_language key to CultureInfo.CurrentUICulture.

For the Orders.Basket pipeline, it also stores the CatalogConnectionString, Evaluator, and CacheName keys.

For the Total pipeline, it also stores the TransactionConfigConnectionString key.

A PipelineInfo object contains references to unmanaged objects. You should call the Dispose method of the PipelineInfo object when you are through with the PipelineInfo object.

Permissions

See Also

Reference

PipelineInfo Class

PipelineInfo Members

PipelineInfo Overload

Microsoft.CommerceServer.Runtime.Orders Namespace