/// <summary> /// Performs an asynchronous delete request. /// </summary> /// <typeparam name="T">Type of result being returned.</typeparam> /// <param name="route">Route to call.</param> /// <param name="callerMemberName"></param> /// <param name="callerLineNumber"></param> /// <returns>Specified generic type.</returns> protected async Task <T> DeleteAsync <T>(string route, [CallerMemberName] string callerMemberName = "[Unknown]", [CallerLineNumber] int callerLineNumber = -1) { LogDebug("DELETE: " + route); try { using (var response = await _httpClient.DeleteWithJsonAsync(route, SecurityToken)) { return(await HandleResponseAndResultCodes <T>(response, route, callerMemberName, callerLineNumber)); } } catch (Exception ex) { LogError(ex); throw; } }