DotNetWorkQueue.Transport.Redis.RedisConnection.EnsureCreated C# (CSharp) Method

EnsureCreated() private method

Ensures that the connection has been opened.
The connection will only be opened once
private EnsureCreated ( ) : void
return void
        private void EnsureCreated()
        {
            if (_connection != null) return;
            lock (_connectionLock)
            {
                if (_connection != null) return;
                _connection = ConnectionMultiplexer.Connect(_connectionInformation.ConnectionString);
            }
        }
    }