title: Wait IAsyncResult function until complete
body: <p>I need to create mechanism which waits IAsycnResult method till complete.
  How can i achieve this ?    </p>
  
  <pre><code>IAsyncResult result = _contactGroupServices.BeginDeleteContact(
    contactToRemove.Uri,
    ar =&gt;
        {
        try
           {
             _contactGroupServices.EndDeleteContact(ar);
           }
        catch (RealTimeException rtex)
           {
              Console.WriteLine(rtex);
           }
        },
        null ); 
  </code></pre>