Exemplo n.º 1
0
 internal MessageReader(ISmRtApi smRtApi, ClientWebSocket client, AutoResetEvent resetEvent, AutoResetEvent recognitionStarted)
 {
     _api                    = smRtApi;
     _wsClient               = client;
     _resetEvent             = resetEvent;
     _recognitionStarted     = recognitionStarted;
     _multipartMessageBuffer = new StringBuilder();
 }
 internal MessageWriter(ISmRtApi smRtApi,
                        ClientWebSocket client,
                        AutoResetEvent transcriptionComplete,
                        Stream stream,
                        AutoResetEvent recognitionStarted)
 {
     _api                   = smRtApi;
     _stream                = stream;
     _recognitionStarted    = recognitionStarted;
     _wsClient              = client;
     _transcriptionComplete = transcriptionComplete;
 }