private async Task <SkillResponse> ProcessAlexaRequestAsync(SkillRequest alexaRequest, BotCallbackHandler logic) { var activity = RequestToActivity(alexaRequest); var context = new TurnContextEx(this, activity); await RunPipelineAsync(context, logic, default).ConfigureAwait(false); var activities = context.SentActivities; var outgoingActivity = ProcessOutgoingActivities(activities); var response = _requestMapper.ActivityToResponse(outgoingActivity, alexaRequest); return(response); }
private static SkillResponse ExecuteActivityToResponse(AlexaRequestMapper mapper, MergedActivityResult mergedActivityResult, SkillRequest alexaRequest) { mergedActivityResult.MergedActivity = ActivityHelper.GetAnonymizedActivity(mergedActivityResult.MergedActivity); return(mapper.ActivityToResponse(mergedActivityResult, alexaRequest)); }
private static SkillResponse ExecuteActivityToResponse(AlexaRequestMapper mapper, Activity activity, SkillRequest alexaRequest) => mapper.ActivityToResponse(ActivityHelper.GetAnonymizedActivity(activity), alexaRequest);