Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 public ChatHub(IWillyChatService willyChatService)
 {
     _willyChatService = willyChatService;
     _chatBots         = new Dictionary <string, WillyChatBot>();
 }