コード例 #1
0
        internal void OnMediaTranscriptRecorderError(Message m)
        {
            NonBlockingConsole.WriteLine("Error message loged: " + m.ToString());

            _messages.Add(m);

            // TODO: Logic to handle errors that can happen in indiviual recorders/modality calls
        }
コード例 #2
0
        internal void OnMessageReceived(Message m, string appId = null)
        {
            NonBlockingConsole.WriteLine("Message logged: " + m.ToString());

            _messages.Add(m);
            if (_localConvContextChannel != null)
            {
                ContentType contentType = new ContentType();
                _localConvContextChannel.BeginSendData(contentType, Constants.GetBytes(MessageToContextualData(m)), this.BeginContextSendDataCB, _localConvContextChannel);
            }
            if (_convContextChannel != null)
            {
                ContentType contentType = new ContentType();
                _convContextChannel.BeginSendData(contentType, Constants.GetBytes(MessageToContextualData(m)), this.BeginContextSendDataCB, _convContextChannel);
            }
        }