Systran.NlpClientLib.Client.ApiClient.GetApiKeyWithPrefix C# (CSharp) 메소드

GetApiKeyWithPrefix() 공개 메소드

Get the API key with prefix
public GetApiKeyWithPrefix ( string apiKey ) : string
apiKey string
리턴 string
    public string GetApiKeyWithPrefix (string apiKey)
    {
      var apiKeyValue = "";
      Configuration.apiKey.TryGetValue (apiKey, out apiKeyValue);
      var apiKeyPrefix = "";
      if (Configuration.apiKeyPrefix.TryGetValue (apiKey, out apiKeyPrefix)) {
        return apiKeyPrefix + " " + apiKeyValue;
      } else {
        return apiKeyValue;
      }
    }