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