public void Dispose() { if (mSpeechVerifier != null) { mSpeechVerifier.Dispose(); mSpeechVerifier = null; } }
public SpeechVerifier(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) { mSpeechVerifier = new Internal.SpeechVerifier_HttpClient_Version1(configuration); } else { throw new NotSupportedException("ServerTransport not supported"); } } else { throw new NotSupportedException("ServerVersion not supported"); } }