Beispiel #1
0
        async public void QueryPresenters()
        {
            List <Presenter> presenters = null;

            try
            {
                presenters = await _APIProvider.GetPresentersAsync();
            }
            catch (Exception ex)
            {
                if (Failure != null)
                {
                    Failure.Invoke(this, new APIQueryArgs(ex));
                }

                //TODO: Log Error
            }
            finally
            {
                if (PresenterQueryComplete != null)
                {
                    PresenterQueryComplete.Invoke(this, new APIQueryArgs(presenters));
                }
            }
        }