2881099 / csredis

.NET Core or .NET Framework 4.0+ client for Redis and Redis Sentinel (2.8) and Cluster. Includes both synchronous and asynchronous clients.
MIT License
2.01k stars 414 forks source link

请问一下有没有方法取消管道操作 #502

Open shennwei opened 8 months ago

shennwei commented 8 months ago

你好,我开启了一个管道并进行了一系列操作,如果最后不想提交这些操作,是需要调用方法取消这个管道操作,还是只要不调用EndPipe方法就行了

2881099 commented 8 months ago

只要不调用EndPipe方法就行了

shennwei commented 8 months ago

我看dispose方法也会调用EndPipe,这个会有问题吗 image

shennwei commented 8 months ago

简单测试了一下,不调用EndPipe,创建了50个pipe之后就报错了,调用的话不会报错 image

2881099 commented 8 months ago

using (var pipe = xxx.StartPipe())