Esempio n. 1
0
        public async Task <string> TransformTextAsync(string text)
        {
            var pipeModel = new TransformTextPipeModel {
                Text = text
            };

            var pipe = _transformTextPipeFactory.CreatePipe();
            await pipe.ExecuteAsync(pipeModel);

            return(pipeModel.Text);
        }
        public async Task <TranslateTextPipeModel> TranslateTextAsync(string message, string queueName)
        {
            var pipe = _translateTextPipeFactory.CreatePipe();

            var pipeModel = new TranslateTextPipeModel
            {
                QueueName = queueName,
                InMessage = message
            };

            await pipe.ExecuteAsync(pipeModel);

            return(pipeModel);
        }
Esempio n. 3
0
 public EventSink(IPipeFactory factory)
 {
     _pipe = factory.CreatePipe(typeof(TSource).FullName);
 }