private void EnsureSendOperation() { if (_sendOperation == null) { lock (_thisLock) { if (_sendOperation == null) { _sendOperation = new WebSocketOperation.SendOperation(this); } } } }