Пример #1
0
        /// <summary>
        /// Processes the message.
        /// </summary>
        /// <param name="message">The message to process.</param>
        /// <returns>The response to the message.</returns>
        private Task <BotMessage> DoProcessAsync(BotMessage message)
        {
            var secretIsNeeded = _subscriptionService.CheckSubscriptionKeyNeeded();

            return(secretIsNeeded ? RequestSubscriptionKeyAsync() : SubscribeSenderAsync(message));
        }