private void EnterPipeline() { if (Interlocked.CompareExchange(ref _pipelineMode, 1, 0) == 0) { _pipeline = _client.CreatePipeline(); } }