Systran.NlpClientLib.Client.ApiClient.GetApiKeyWithPrefix C# (CSharp) Méthode

GetApiKeyWithPrefix() public méthode

Get the API key with prefix
public GetApiKeyWithPrefix ( string apiKey ) : string
apiKey string
Résultat 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;
      }
    }