/// <inheritdoc/> public async Task EndSessionAsync(string sessionId, string text) { var message = new EndSessionMessage() { SessionId = sessionId, Text = text }; await EndSessionAsync(message); }
public void SuccessfullySerializeMessage() { var message = new EndSessionMessage(); var serializer = new EndSessionSerializer(); var serializedMessage = serializer.Serialize(message); var deserializedMessage = serializer.Deserialize(serializedMessage); Assert.That(deserializedMessage, Is.InstanceOf <EndSessionMessage>()); }
/// <inheritdoc/> public async Task EndSessionAsync(EndSessionMessage message) { var serializedMessage = Newtonsoft.Json.JsonConvert.SerializeObject(message); await PublishMessageAsync(DialogEndSessionMessageQueueName, serializedMessage); }