Exemplo n.º 1
0
 public ChatMessageService(
     IOptions <LuisChatResponses> luisChatResponses,
     IOptions <ChatConfiguration> chatConfiguration
     )
 {
     _luisChatResponses = luisChatResponses.Value ?? throw new ArgumentNullException(nameof(luisChatResponses));
     _chatConfiguration = chatConfiguration.Value ?? throw new ArgumentNullException(nameof(chatConfiguration));
 }
Exemplo n.º 2
0
 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));
 }