|
Home > Archive > Commerce Server General > August 2006 > Custom Pipeline IDictionary
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Custom Pipeline IDictionary
|
|
|
| Is it possible in CS 2002 or CS 2007 to develop a custom pipeline that makes
calls to native Commerce Service objects, like loading a profile object
based on the user id retrieved from the OrderForm IDictionary?
Alternatively, is there a way to add custom items to the OrderForm
IDictionary that is passed to my custom pipeline?
Thanks in advance.
| |
| Ravi Shankar 2006-08-16, 1:20 am |
| Hi Mark,
Answers inline. Hope this helps
--
Ravi Shankar
"Mark" wrote:
> Is it possible in CS 2002 or CS 2007 to develop a custom pipeline that makes
> calls to native Commerce Service objects, like loading a profile object
> based on the user id retrieved from the OrderForm IDictionary?
Definitely, that is the intent of the context object that is passed onto the
pipeline execute call. In CS2002, this context contains the
CommerceContext... one point to remmebr here is that the pipeline execution
context is COM+ to all calls need to adhere to COM+
>
> Alternatively, is there a way to add custom items to the OrderForm
> IDictionary that is passed to my custom pipeline?
Yes. The COM+ Dictionary object is just a collection component which can be
used to store any items. The point to remember here is that th key name
should not start with "_" (underscore) as any such key is not persisted into
the underlying datastore. So in a pipeline component (even outside) you can
use code like OrderForm(<my key> ) = value/object ....
>
> Thanks in advance.
>
>
>
>
| |
|
| Thanks for your detailed comments Ravi.
Regarding your first comment below, could you point me at an online resource
with a brief example using the context to interegate the CommerceContext?
THANK YOU!
Mark
"Ravi Shankar" <shankycheil@newsgroup.nospam> wrote in message
news:6F2CC071-0845-4D2E-8226-AF3E2E4FCEB3@microsoft.com...[vbcol=seagreen]
> Hi Mark,
>
> Answers inline. Hope this helps
> --
> Ravi Shankar
>
>
> "Mark" wrote:
>
>
> Definitely, that is the intent of the context object that is passed onto
> the
> pipeline execute call. In CS2002, this context contains the
> CommerceContext... one point to remmebr here is that the pipeline
> execution
> context is COM+ to all calls need to adhere to COM+
>
>
> Yes. The COM+ Dictionary object is just a collection component which can
> be
> used to store any items. The point to remember here is that th key name
> should not start with "_" (underscore) as any such key is not persisted
> into
> the underlying datastore. So in a pipeline component (even outside) you
> can
> use code like OrderForm(<my key> ) = value/object ....
>
>
| |
| Ravi Shankar 2006-08-17, 7:27 am |
| Hi Mark,
The information in online documents is available in a scattered format. Let
me try and give you a few links.
http://msdn.microsoft.com/library/?....asp?frame=true
-> This link is for building Pipeline Components... You'll find the
definition of the context and its use here.
http://msdn.microsoft.com/library/?....asp?frame=true
-> This is a link to a CommerceModule Class which IMHO you'd need to
implement if you want Custom Resources for your site and build pipeline
component to use them.
http://msdn.microsoft.com/library/?....asp?frame=true
is the other link that provides information on how custom resources need to
be integrated into Commerce Site.
Finally, Sample Code (Starter Site) specically around how the pipelines are
called will show you how CommerceContext is passed to a pipeline and thus
made available within the component context.
--
Ravi Shankar
"Mark" wrote:
> Thanks for your detailed comments Ravi.
>
> Regarding your first comment below, could you point me at an online resource
> with a brief example using the context to interegate the CommerceContext?
>
> THANK YOU!
>
> Mark
>
>
> "Ravi Shankar" <shankycheil@newsgroup.nospam> wrote in message
> news:6F2CC071-0845-4D2E-8226-AF3E2E4FCEB3@microsoft.com...
>
>
>
|
|
|
|
|