I want to write a simple application to help me understand workflow 4.0 a bit. I have a sequence activity with a ReceiveAndSendRepply activity to communicate with my silverlight application.
I want to create a List of Type Students and in my silverlight application, display in the datagrid.
At the moment, I have a simple class Student
public class Student
{
public int ID { get; set; }
public string Name { get; set; }
}
I am exposing my WF as a service and calling it from my silverlight app:
StudentService.ServiceClient client = new StudentService.ServiceClient();
public MainPage()
{
InitializeComponent();
client.GetStudentsCompleted += new EventHandler<StudentService.GetStudentsCompletedEventArgs>(client_GetStudentsCompleted);
}
private void Button_Click(object sender, RoutedEventArgs e)
{
client.GetStudentsAsync();
}
I am able to use the assign A-B and assign a variable and give it ONE value but I want to send multiple values and ierate through them.
How do I go about having a List of students and iterate and display in grid.
How do I create a list in workflow and send it back to the Silverlight grid?