How do I use Condition in CommandProcessor Library?

10 views
Skip to first unread message

Daudi

unread,
Aug 13, 2011, 6:30:47 PM8/13/11
to mvccontrib-discuss
Hi,
I want to set up some kind of if..then logic within my
MessageDefinition<T>.
I've noticed the following method in CommandConfigurationExpression.cs

public ICommandConfigurationExpression<TMessage, TCommand>
Condition(Func<TMessage, bool> condition)
{
_CommandDefinition.ApplyCondition(condition);

return this;
}

Would this do what I'm looking for?
Any snippets?

Thanks Daudi.
Reply all
Reply to author
Forward
0 new messages