public Task Consume(ConsumeContext <ResultValue> context) { tourniqet.Exit(); var message = string.Format("Result # {0} equal {1}", context.Message.Number, context.Message.Result); Logger.Log.Info(message); resultWriter.Save(message); return(Task.FromResult(context)); }