private async Task Connect() { if (_connection == null) { _connection = new BillingConnection(); await _connection.Connect(); } }
public void Disconnect() { if (_connection != null) { _connection.Disconnect(); _connection.Dispose(); _connection = null; } }