0

i add the wcf service reference and tick the option called Generate Asynchronous Operation. i found proxy code was added like this way....

public interface ICalculator {

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ICalculator/Add", ReplyAction="http://tempuri.org/ICalculator/AddResponse")]
        double Add(double n1, double n2);

        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ICalculator/Add", ReplyAction="http://tempuri.org/ICalculator/AddResponse")]
        System.IAsyncResult BeginAdd(double n1, double n2, System.AsyncCallback callback, object asyncState);

        double EndAdd(System.IAsyncResult result);


    }

now i want to call wcf service asynchronously event driven way. so please anyone help me how to call wcf service asynchronously with event driven way. if possible give a small sample code or drive me to right url from where i can get the knowledge. thanks

Thomas
  • 32,301
  • 119
  • 343
  • 612
  • 1
    The following article seems to provide the details you are looking for: http://www.codeproject.com/Articles/73506/Summarizing-Client-Side-Asynchronous-Invocations-i – Seymour Jan 30 '14 at 16:15
  • Possibly a duplicate: http://stackoverflow.com/questions/21481210/how-to-call-wcf-service-asynchronously – noseratio Feb 01 '14 at 14:19

0 Answers0