public void RunWithDelegates()
{
_getPersonAsync = new GetPersonAsync(GetPerson);
_getPersonAsync.BeginInvoke(GetPersonCallBack, null);
//or
_getPersonAsync.BeginInvoke((result) =>
{
var person = _getPersonAsync.EndInvoke(result);
}, null);
}
internal void GetPersonCallBack(IAsyncResult asyncResult)