1 #region Using directives
4 using System
.Collections
.Generic
;
6 using System
.ServiceModel
;
7 using Microsoft
.ServiceModel
.Samples
;
11 namespace Microsoft
.ServiceModel
.Samples
15 static void Main(string[] args
)
18 EchoableClient client
= new EchoableClient();
22 string response
= client
.Echo("Hello");
23 Console
.WriteLine("Client: Got {0} in response", response
);
25 catch (FaultException
<WorkflowAborted
> ex
)
27 Console
.WriteLine("Client: Got {0} as a fault", ex
.Detail
.Message
);
30 //Closing the client gracefully closes the connection and cleans up resources
34 Console
.WriteLine("Press <ENTER> to terminate client.");