Created
December 29, 2017 11:13
Star
You must be signed in to star a gist
Bot Framework Messages Controller without DI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// POST: api/Messages | |
/// Receive a message from a user and reply to it | |
/// </summary> | |
public async Task<HttpResponseMessage> Post([FromBody]Activity activity) | |
{ | |
if (activity.Type == ActivityTypes.Message) | |
{ | |
await Conversation.SendAsync(activity, () => new Dialogs.RootDialog()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment