Skip to content

Commit f5900a6

Browse files
ejadibmsft-shahins
authored andcommitted
Update Routing code to use SendToConversationAsync method (#941)
Update to use the async version of the SendToConversation method since the samples are awaiting that call
1 parent 50fb75a commit f5900a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CSharp/Documentation/Routing.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ When your %bot receives a message Activity it will want to respond.
8686
~~~
8787
8888
\subsection replytoactivity ReplyToActivity()
89-
To reply simply create a reply message and call the **ReplyToActiivty()** method. The %Connector service will take care of the details
89+
To reply simply create a reply message and call the **ReplyToActivity()** method. The %Connector service will take care of the details
9090
of delivering your message using the appropriate channel semantics.
9191
9292
~~~{.cs}
@@ -108,7 +108,7 @@ When your %bot receives a message Activity it will want to respond.
108108
newMessage.Conversation = conversation;
109109
newMessage.Recipient = userAccount;
110110
newMessage.Text = "Yo yo yo!";
111-
await connector.Conversations.SendToConversation((Activity)newMessage);
111+
await connector.Conversations.SendToConversationAsync((Activity)newMessage);
112112
~~~
113113
114114
\subsection multiplereplies Multiple replies
@@ -141,7 +141,7 @@ to SendToConversation().
141141
message.Conversation = new ConversationAccount(id: ConversationId.Id);
142142
message.Text = "Hello";
143143
message.Locale = "en-Us";
144-
await connector.Conversations.SendToConversation((Activity)message);
144+
await connector.Conversations.SendToConversationAsync((Activity)message);
145145
~~~
146146
147147
@@ -166,8 +166,8 @@ to SendToConversation().
166166
message.ChannelId = "email";
167167
message.Text = "Hey, what's up everyone?";
168168
message.Locale = "en-Us";
169-
await connector.Conversations.SendToConversation((Activity)message);
169+
await connector.Conversations.SendToConversationAsync((Activity)message);
170170
~~~
171171
172172
**/
173-
}
173+
}

0 commit comments

Comments
 (0)