Note that there are some explanatory texts on larger screens.

plurals
  1. POCreating a long-running Workflow Service
    primarykey
    data
    text
    <p>I'm trying to follow this tutorial <a href="http://msdn.microsoft.com/en-us/library/ff432975.aspx" rel="nofollow">On MSDN</a> in order to learn more about workflow services and how they work. Now I'm possibly crazy but I'm having problems with the client section of the tutorial (I'm tempted to blame the tutorial and not myself for this issue). I'm getting refrence errors on the StartOrderClient initialization and the AddItemClient. Is this just a case of a slightly incomplete step in the tutorial or am I missing something? </p> <p>I thank you greatly in advance.</p> <p>Below is my Order Client Console Program</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using System.ServiceModel.Activities; namespace OrderClient.OrderService { class Program { static void Main(string[] args) { // Send initial message to start the workflow service Console.WriteLine("Sending start message"); StartOrderClient startProxy = new StartOrderClient(); string orderId = startProxy.StartOrder("Kim Abercrombie"); // The workflow service is now waiting for the second message to be sent Console.WriteLine("Workflow service is idle..."); Console.WriteLine("Press [ENTER] to send an add item message to reactivate the workflow service..."); Console.ReadLine(); // Send the second message Console.WriteLine("Sending add item message"); AddItemClient addProxy = new AddItemClient(); AddItem item = new AddItem(); item.p_itemId = "Zune HD"; item.p_orderId = orderId; string orderResult = addProxy.AddItem(item); Console.WriteLine("Service returned: " + orderResult); } } } </code></pre> <p>Here are the errors. StartOrderClient and AddItemClient which I don't believe get defined in the tutorial.</p> <p>The type or namespace name 'StartOrderClient' could not be found (are you missing a using directive or an assembly reference?)</p> <p>The type or namespace name 'AddItemClient' could not be found (are you missing a using directive or an assembly reference?)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload