Workflow Foundation: How to create Recieve activity with custom message in xaml designer?
Posted
by Petr Felzmann
on Stack Overflow
See other posts from Stack Overflow
or by Petr Felzmann
Published on 2010-05-31T12:51:07Z
Indexed on
2010/05/31
12:53 UTC
Read the original article
Hit count: 250
workflow-foundation
|workflow-foundation-4
I need to have Recieve activity which can receive my custom data. I found examples, but all use coded workflows like such
public class ProcessRequest : Activity
{
public ProcessRequest()
{
Variable<MyData> request = new Variable<MyData> { Name = "request" };
Receive receiveRequest = new Receive
{
ServiceContractName = "IProcessRequest",
OperationName = "Foo",
CanCreateInstance = true,
Content = ReceiveContent.Create(new OutArgument<MyData>(request))
};
}
}
The main point is that Recieve.Content
property. It is not clear for me how I can do it in XAML designer. What I have to set in the dialog of the Content
property - Message or Parameters and what to set inside those options?
Thanks for the light!
© Stack Overflow or respective owner