Ejemplo n.º 1
0
        async public void QuerySessions()
        {
            List <Session> sessions = null;

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

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