Thanks Randey ,
Yes it working fine with your project but all things are same in my projects as well but we using asyncpattern in different manner like sending the request and getting the response objects and its not working with my project .
i have create 2 project one for the wcf service and other unit test so we can test this functionality by using visual studio test project .
I am shared these 2 projects through skydive with zip file named as Exceptionwebservice .Let me know if you r not able to run or not find the shared file
In service contract has 2 method .
With Asyncpattren---Its not working as Expected
1) [OperationContract(AsyncPattern = true)]
IAsyncResult BeginCreateOrder(Addrequest addrequest, AsyncCallback callback, object asyncState);
AddResponse EndCreateOrder(IAsyncResult result);
For without Asyncpattern
2)CreateOrder1--Its working Fine as expected
[OperationContract(Name = "CreateOrder1")]
int CreateOrder1(string currency, double amount);
I have create the unit test project in which we are consuming this service .In this test method we have 2 method
- Testvalidation--This will call the Asyncpattren pattren function(CreateOrder)and its not working fine
- Testvalidation---This will call the CreateOrder1 fuction which is not using Asyncpattren and its working fine .
Kindly Share the suggestions and let me as well if there is any problem in my code or i am doing something wrong