예제 #1
0
 public ChatBotService(
     IHubContext <ChatHub> chatHub,
     IDadJokeService dataJokeService,
     ICommandSignal commandSignal,
     ILogger <ChatBotService> logger)
 {
     _chatHub         = chatHub;
     _dataJokeService = dataJokeService;
     _commandSignal   = commandSignal;
     _logger          = logger;
 }
예제 #2
0
 public ChatBotService(
     IHubContext <ChatHub> chatHub,
     IJokeServiceProvider jokeServiceProvider,
     ICommandSignal commandSignal,
     ITranslationService translationService,
     ILogger <ChatBotService> logger)
 {
     _chatHub             = chatHub;
     _jokeServiceProvider = jokeServiceProvider;
     _commandSignal       = commandSignal;
     _translationService  = translationService;
     _logger = logger;
 }
예제 #3
0
 public ChatHub(ICommandSignal commandSignal) => _commandSignal = commandSignal;