Ejemplo n.º 1
0
        /// <inheritdoc/>
        public async Task ContinueSessionAsync(ContinueSessionMessage message)
        {
            if (message == null)
            {
                throw new ArgumentNullException(nameof(message));
            }

            var serializedMessage = Newtonsoft.Json.JsonConvert.SerializeObject(message);

            await PublishMessageAsync(DialogContinoueSessionMessageQueueName, serializedMessage);
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        public async Task ContinueSessionAsync(string sessionId, string text, bool sendIntentNotRecognized = false, string customerData = null, string slot = null, params string[] allowedIntents)
        {
            var message = new ContinueSessionMessage()
            {
                SessionId = sessionId,
                Text      = text,
                SendIntentNotRecognized = sendIntentNotRecognized,
                Slot            = slot,
                CustomData      = customerData,
                FilteredIntents = allowedIntents
            };

            await ContinueSessionAsync(message);
        }