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