public void Dispose()
 {
     if (mSpeechIdentifier != null)
     {
         mSpeechIdentifier.Dispose();
         mSpeechIdentifier = null;
     }
 }
 public SpeechIdentifier(SpeechApi.Configuration configuration)
 {
     if (configuration.ServerTransport != SpeechApi.SpeechTransport.Rest)
     {
         throw new NotSupportedException("ServerTransport not supported");
     }
     else if (configuration.ServerVersion == SpeechApi.SpeechVersion.Version_1)
     {
         if (configuration.ServerTransportObject is HttpClient)
         {
             mSpeechIdentifier = new Internal.SpeechIdentifier_HttpClient_Version1(configuration);
         }
         else
         {
             throw new NotSupportedException("ServerTransport not supported");
         }
     }
     else
     {
         throw new NotSupportedException("ServerVersion not supported");
     }
 }