09-15-05 12:48 PM
The main values coming into the pipeline are the order itself (pdispOrder)
and the pipeline context (pdispContext). In your code you can cast these
objects to IDictionary and then access the data within them. As Colin
mentioned, the methods you reference in your post are not methods you use to
determine values read and written, they are methods you use to publish to
the rest of the world which values your pipeline component reads from and
writes to. By implementing these methods you let a user of your component
right-click on the component to see its properties and find out what values
it reads and writes.
--
Zoe Hart
Commerce Server MVP
"csstarter" <rayeesur@gmail-dot-com.no-spam.invalid> wrote in message
news:SYGdndYhy86FzrXeRVn_vQ@giganews.com...
>I did write a pipeline component in C# but i dont know how to figure
> out what values to read.Is there a best way to look what values r
> coming into pipeline and which can be used?
>
> public object ValuesWritten()
> {
> object[] valuesWritten = new object[1];
> valuesWritten[0] = "order."+"shipments." + SHIPMENT_PRICE;
> return valuesWritten;
> }
>
>
> public object ValuesRead()
> {
> object[] valuesRead = new object[3];
> valuesRead[0] = "order."+"shipments." + SHIPMENT_ADDRESS_ID;
> valuesRead[1] = "order."+"shipments." + SHIPMENT_METHOD_ID;
> valuesRead[2] = "order."+"shipments." + SHIPMENT_PRICE;
>
> return valuesRead;
> }
> When I run the pipeline it wont change any values even if i debug
> program will not reach the beakpoint,how can i find the vaues what
> iam reading r actually the right ones...the values i have above is
> looking at the other components which r above this component
>
[ Post a follow-up to this message ]
|