Calling WCF service Asynchronously in Console Application - VS 2008 (Framework - 3.5).


WCF Service Library:

[ServiceContract(Name = "IAddService")]
public interface IAddServiceAsync
    [OperationContract(AsyncPattern = true)]
    IAsyncResult BeginAdd(int a, int b, AsyncCallback callback, object state);

    int EndAdd(IAsyncResult result);

WCF Host (Console App):

      <service name="AddService">
        <endpoint address="" contract="ServiceLibrary.IAddService" binding="basicHttpBinding"></endpoint>
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="true"/>
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="true"/>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />

WCF Client (Console App):

Please provide the client code for calling the above WCF Service asynchronouly using 1) Delegates 2) Callbacks in VS 2008 (Framework - 3.5).

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
milani_lucieAuthor Commented:
I have gone through those sites.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.