public int EndAdd(IAsyncResult ar) { Trace("Service.EndAdd"); IntDelegate theDelegate = (IntDelegate)((System.Runtime.Remoting.Messaging.AsyncResult)ar).AsyncDelegate; return(theDelegate.EndInvoke(ar)); }