Example #1
0
        // Try Get object (DTO) from query
        public static async Task <Tuple <bool, T> > TryExecuteGETQuery <T>(string query) where T : class
        {
            T   resultObject = null;
            var result       = await Sync.ExecuteTaskAsync(() => TwitterAccessor.TryExecuteGETQuery(query, out resultObject));

            return(new Tuple <bool, T>(result, resultObject));
        }
Example #2
0
 // Try Operation and check success
 public static async Task <bool> TryExecuteGETQuery(string query)
 {
     return(await Sync.ExecuteTaskAsync(() => TwitterAccessor.TryExecuteGETQuery(query)));
 }