add thrift bidirectional example.