-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs omit Servers property #52
Comments
Oh, the |
BTW I was able to resolve this both locally in development and post-production without making any code tweaks. Just making sure folks see that this is possible. public List<OpenApiServer> Servers
{
get
{
return ( new OpenApiServer[] { new OpenApiServer { Url =
//"https://localhost:7071"
Environment.GetEnvironmentVariable("WEBSITE_HOSTNAME")
}}).ToList();
}
set => throw new NotImplementedException();
} Curious what folks would prefer?
|
I prefer the option 1. |
This has been released to NuGet. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I followed the docs - which are MUCH-improved and getting exciting - and ran into one issue. When I follow the tutorial explicitly the
OpenApiConfigurationOptions
class I created lacks theServers
property, so I get a compilation error.I can add this manually, but I think this approach to hard-coding it is sub-optimal and I'd prefer us not recommend someone hard-code
localhost
into their C# code.Is there a way that the Functions runtime can provide this? Something we could do to mitigate the customer's need to have to do this OR provide some sort of guidance that wouldn't require hard-coding?
The text was updated successfully, but these errors were encountered: