Ejemplo n.º 1
0
        async public void QueryPresentations()
        {
            List <Presentation> presentations = null;

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

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