Пример #1
0
        /// <inheritdoc/>
        public async Task EndSessionAsync(string sessionId, string text)
        {
            var message = new EndSessionMessage()
            {
                SessionId = sessionId, Text = text
            };

            await EndSessionAsync(message);
        }
Пример #2
0
        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>());
        }
Пример #3
0
        /// <inheritdoc/>
        public async Task EndSessionAsync(EndSessionMessage message)
        {
            var serializedMessage = Newtonsoft.Json.JsonConvert.SerializeObject(message);

            await PublishMessageAsync(DialogEndSessionMessageQueueName, serializedMessage);
        }