public void AsyncGetLoginData() { Token token = SessionManager.Default.GetToken(_LoginInfo.Parameter.Request.ClientInfo.Session); IInitDataProvider initDataProvider = new InitDataProvider(); initDataProvider.Completed += LoadInitDataCompletedCallback; AsyncEnumerator ae = new AsyncEnumerator(); ae.BeginExecute(initDataProvider.AsyncGetInitData(token, ae), ae.EndExecute); }
public void AsyncGetInitData() { Debug.Assert(_Token != null, "token can't be null"); IInitDataProvider provider = new InitDataProvider(); provider.Completed += GetInitDataCompletedCallback; var ae = new AsyncEnumerator(); ae.BeginExecute(provider.AsyncGetInitData(_Token, ae), ae.EndExecute); }