Comments (6)
Grrr this won't work as it'll be compiled to a standard optimized closure, aka AssemblyName = FSharp.Core.
router (scope {
forward "/api" apiScope
})
Only like this will an actual type be generated inside your own app to get a good read of.
router (fun next -> (next |> scope {
forward "/api" apiScope
}))
Any clever ideas? @Krzysztof-Cieslak
from saturn.
A possible workaround here would be for Saturn to add a app_name
CE member to the application
CE and set the backing setting explicitly, and if the user doesn't provide an app name then set it by default from the current executing assembly?
The actual configuration change would be
.UseSetting(WebHostDefaults.ApplicationKey, "CustomApplicationName")
from saturn.
Relevant, it may get more clear in 3.0 dotnet/aspnetcore#7315
from saturn.
I'm confused why dotnet/aspnetcore#14183 was closed as "no work to do" - can anyone shed light on that decision? This is the closest issue I can find.
I spent some time digging through the code in this repo trying to figure out why my ASPNETCORE 3.x app was not respecting the APPLICATION_NAME
set up in my app configuration and learned that using the DefaultWebHostBuilder
and configuring a Startup
class injects an additional configuration provider (last so that it overrides my app configuration) and forces the app name to the AssemblyName of the DLL containing the Startup
class.
I'm curious why it does not simply respect the APPLICATION_NAME
as configured by IConfigurationBuilder
instance returned from the ConfigureAppConfiguration
method?
I'm using a Generic Host and then calling ConfigureWebHostDefaults
, so maybe this is a holdover behavior in the Web Host from before the Generic Host was created?
It appears to place the Generic Host guidance for setting ApplicationName
in conflict with the Web Host guidance for setting ApplicationName
Eventually I'm hoping that the responsibility of overriding the ApplicationName
config setting can be removed from the web host responsibility and handled in a consistent way by the Generic Host
from saturn.
Apologies, I didn't even realize which repo this issue is in, after clicking through so many issues I think I got lost. ;-) will ask in the aspnet repos.
from saturn.
I'm not even sure if the bug is still there, but anyway, we can't do anything about it here - it's underlying ASP problem. So I'm closing this issue.
from saturn.
Related Issues (20)
- Get WebHostEnvironment from CE extension HOT 1
- use_grpc fails if service has multiple constructors
- [Security] Workflow benchmark.yml is using vulnerable action actions/checkout HOT 1
- [Security] Workflow build.yml is using vulnerable action actions/checkout HOT 1
- [Security] Workflow publish.yml is using vulnerable action actions/checkout HOT 1
- [Security] Workflow publish.yml is using vulnerable action mindsers/changelog-reader-action
- Endpoint Routing Still Experimental? HOT 1
- Map Standard Controller to Router or Controller?
- Endpoint router does not have concept of NotFoundHandler HOT 1
- Router executes all getf functions regardless of them being called (in debug only), is passing null into the arguments HOT 2
- Considering file-based router ?
- How To Start a Saturn Project HOT 27
- How to externalize configuration information HOT 2
- requireHeader Pipeline Helper Returning Http 404
- svg has mimetype text/plain
- [MINOR] spelling error in comments in sample application HOT 1
- Update docs to reflect latest changes and use enpoints routing as default?
- Publish Application.fs independent CE for Aspnetcore builder as a separate nuget package with only aspnet dependencies
- Zookeeper zxid溢出后选举.saturn web会出现重连失败.
- sample/ChannelsSample throws error on join HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from saturn.