public static async Task <HttpResponseMessage> GetResponseAsync(this SpeechletBase speechlet, HttpRequestMessage httpRequest) { return(await speechlet.Service.GetResponseAsync(httpRequest)); }
/// <summary> /// Processes Alexa request AND validates request signature /// </summary> /// <param name="httpRequest"></param> /// <returns></returns> public static HttpResponseMessage GetResponse(this SpeechletBase speechlet, HttpRequestMessage httpRequest) { return(AsyncHelpers.RunSync(async() => await speechlet.Service.GetResponseAsync(httpRequest))); }