Udostępnij za pośrednictwem


PipelineInfo Constructor (String)

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

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

Syntax

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

Dim instance As New PipelineInfo(pipelineName)
public PipelineInfo(
    string pipelineName
)
public:
PipelineInfo(
    String^ pipelineName
)
public function PipelineInfo(
    pipelineName : String
)

Parameters

  • pipelineName
    Type: System..::.String
    The name of the pipeline of interest. This corresponds to the name of the corresponding pipeline file.

Exceptions

Exception Condition
ArgumentException

The pipeline with the specified pipeline 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