Chatbot async improvements (#446)
* Add better chatbot handling by making them asynchronous Removes the need for having RunInTimespan as await Task.Delay now can handle this * Remove now unused classes * Handle commando's commands with ValueTask * Set values as not nullable, client sends all of these
This commit is contained in:
@@ -199,15 +199,13 @@ public class DialogueCallbacks(
|
||||
/// Handle client/mail/msg/send
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public virtual ValueTask<string> SendMessage(
|
||||
public virtual async ValueTask<string> SendMessage(
|
||||
string url,
|
||||
SendMessageRequest request,
|
||||
string sessionID
|
||||
)
|
||||
{
|
||||
return new ValueTask<string>(
|
||||
_httpResponseUtil.GetBody(_dialogueController.SendMessage(sessionID, request))
|
||||
);
|
||||
return _httpResponseUtil.GetBody(await _dialogueController.SendMessage(sessionID, request));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user