Unleash / unleash-client-dotnet

Unleash client SDK for .NET
Apache License 2.0
77 stars 39 forks source link

Support for hostname strategy #223

Open evozniak opened 3 weeks ago

evozniak commented 3 weeks ago

Is your feature request related to a problem? Please describe. In the Unleash-client 2.2.0 I could use the IPs strategy for hostnames, but in the latest client there is a validation for allowing only IP addresses (IPAddress.TryParse) in RemoteAddressStrategy.cs

Describe the solution you'd like The Activation Strategies page in the documentation already shows how to use hostnames but apparently, the context of this client doesn't support the property applicationHostname like the documentation shows, only the property remoteAddress is available, but that is for the IPs strategy.

Additional context Is there a guide on using Hostnames or is it not supported yet?

evozniak commented 3 weeks ago

I looked at the unit tests, and, the only way of using hosts is via Environment variables. Environment.SetEnvironmentVariable("hostname", "myhost");

Is there a plan to support applicationHostname property? I need to dynamically adjust the hostname depending on the subdomain.