public WillyChatBot(IWillyChatService willyChatService) { _willyChatService = willyChatService; // If already running, create a GUID right away if (_willyChatService.IsRunning()) { Guid = _willyChatService.GetNewBotGuid(); } // If not, wait and create it when the server started _willyChatService.ChatServerStarted += OnServerStarted; }
public ChatHub(IWillyChatService willyChatService) { _willyChatService = willyChatService; _chatBots = new Dictionary <string, WillyChatBot>(); }