Ejemplo n.º 1
0
        public override async Task OnTrigger(ITriggerActivity activity)
        {
            var message         = JsonConvert.DeserializeObject <Message>(((JObject)activity.Value).GetValue("Message").ToString());
            var messageActivity = message.ResumptionCookie.GetMessage();

            var client = new ConnectorClient(new Uri(messageActivity.ServiceUrl));

            var triggerReply = messageActivity.CreateReply();

            triggerReply.Text = $"This is coming back from the trigger! {message.Text}";

            await client.Conversations.ReplyToActivityAsync(triggerReply);
        }
Ejemplo n.º 2
0
 public virtual Task OnTrigger(ITriggerActivity activity)
 {
     return(Task.CompletedTask);
 }