コード例 #1
0
ファイル: ChatService.cs プロジェクト: Softeq/XToolkit.Chat
        public ChatService(
            ISocketChatAdapter socketChatAdapter,
            IHttpChatAdapter httpChatAdapter,
            ILogManager logManager)
        {
            _socketChatAdapter = socketChatAdapter;
            _httpChatAdapter   = httpChatAdapter;
            _logger            = logManager.GetLogger <ChatService>();

            _socketChatAdapter.MessageReceived.Subscribe(OnMessageReceived);
            _socketChatAdapter.MessageEdited.Subscribe(OnMessageEdited);
        }
コード例 #2
0
 public MockChatService(ISocketChatAdapter socketChatAdapter,
                        IHttpChatAdapter httpChatAdapter,
                        ILogManager logManager) : base(socketChatAdapter, httpChatAdapter, logManager)
 {
 }