Beispiel #1
0
 public void Exit()
 {
     _cancellationSource.Cancel();
     _consumeDataHandle = null;
 }
Beispiel #2
0
 public void SetDataConsumeHandle(ConsumeDataHandle handle) =>
 _consumeDataHandle = handle ?? throw new ArgumentException("数据消费函数为空");