Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing && _media != null)
     {
         _media.Dispose();
         _media = null;
     }
 }
 /// <summary>
 /// Dispose the Media Services V3 client.
 /// </summary>
 /// <param name="disposing">Boolean to dispose the Media ServicesV3 client.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         // dispose managed resources
         if (_client != null)
         {
             _client.Dispose();
         }
     }
     // free native resources
 }