/// <summary> /// Retrieves an HttpsImposter along with information about requests made to that /// imposter if mountebank is running with the "--mock" flag. /// </summary> /// <param name="port">The port number of the imposter to retrieve</param> /// <returns>The retrieved imposter</returns> /// <exception cref="MbDotNet.Exceptions.ImposterNotFoundException">Thrown if no imposter was found on the specified port.</exception> /// <exception cref="MbDotNet.Exceptions.InvalidProtocolException">Thrown if the retrieved imposter was not an HTTP imposter</exception> public async Task <RetrievedHttpsImposter> GetHttpsImposterAsync(int port) { var imposter = await _requestProxy.GetHttpsImposterAsync(port).ConfigureAwait(false); ValidateRetrievedImposterProtocol(imposter, Protocol.Https); return(imposter); }