Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Constructor 9/30/2009 10:22 PM
Can anyone clarify the difference between these:

this._outboundModuleActions.Add(new ModuleAction("SomeAction1", new string[1] {"SomethingId"}));
this._outboundModuleActions.Add(new ModuleAction("SomeAction2", new string[0]));
this._outboundModuleActions.Add(new ModuleAction("SomeAction3", null));

When I implement my ParsePathInfo() method it seems to find all parameters in the url anyhow.

So what is the above for? Can anyone put these in a real life use context here. This will help with understanding. I can not find a use for these as yet :$
# Constructor 10/2/2009 12:20 PM (edited 10/2/2009 12:21 PM)
Just to clarify I understand how to implement module actions.

I just want clarification on the bold parts:

this._outboundModuleActions.Add(new ModuleAction("SomeAction1", new string[1] {"SomethingId"}));
this._outboundModuleActions.Add(new ModuleAction("SomeAction2", new string[0]));
this._outboundModuleActions.Add(new ModuleAction("SomeAction3", null));

If I just use 'null', I can still use parameters anyway. They work. So what is the new string[1] {"SomethingId"} and new string[0] options for?

On reading the question again today it sounds like I do not know how to use module action at all. I have used them many times successfully. I am puzzled about the other options.