public ChatMessageService( IOptions <LuisChatResponses> luisChatResponses, IOptions <ChatConfiguration> chatConfiguration ) { _luisChatResponses = luisChatResponses.Value ?? throw new ArgumentNullException(nameof(luisChatResponses)); _chatConfiguration = chatConfiguration.Value ?? throw new ArgumentNullException(nameof(chatConfiguration)); }
public ChatMessageService( IOptions <LuisChatResponses> luisChatResponses, IOptions <ChatConfiguration> chatConfiguration, IEnumerable <IChatMessageRule> listChatMessageRules ) { _luisChatResponses = luisChatResponses.Value ?? throw new ArgumentNullException(nameof(luisChatResponses)); _chatConfiguration = chatConfiguration.Value ?? throw new ArgumentNullException(nameof(chatConfiguration)); _listChatMessageRules = listChatMessageRules.ToArray() ?? throw new ArgumentNullException(nameof(listChatMessageRules)); }