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