You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... but that function just sits there and doesn't seem to be called from anywhere.
Is that correct? I was supposing that someone should somewhere call use_service.
Also:
The chapter starts with: Note the use of the ConfigurationBuilder, but I can't find a ConfigurationBuilder anywhere in the example. Maybe that needs more explanation, if the ConfigurationBuilder is used in some implicit manner (this is all very hard to understand for newbies).
And:
ConfigurationBuiler is misspelled on the page (without 'd').
The text was updated successfully, but these errors were encountered:
In order to do so, I assume I'd need access to the IAppliationBuilder, but that is embedded in the HostBuilder computaion expression and not exposed to the outside world.
Nor can I figure out how I'd include this in the endpoints [ ... ] section.
Maybe not understanding your questions, but is the end of your [<EntryPoint>] function something like this:
[<EntryPoint>]
let main args =
webHost [||] {
use_service yourMiddleWareFuncHere
endpoints (generateEndpoints ())
}
0
You can use the helper functions like use_service inside that webHost record.
Then the trick would be making the signatures match. So access to the IApplicationBuilder would be available using use_middleware with a function that has a signature of IApplicationBuilder -> IApplicationBuilder.
Does that help or am I missing your point entirely (very possible :) )?
I've been trying to figure out https://www.falcoframework.com/docs/host.html#add_service
There's function
dbConnectionService
that creates a service:... but that function just sits there and doesn't seem to be called from anywhere.
Is that correct? I was supposing that someone should somewhere call
use_service
.Also:
The chapter starts with: Note the use of the ConfigurationBuilder, but I can't find a ConfigurationBuilder anywhere in the example. Maybe that needs more explanation, if the ConfigurationBuilder is used in some implicit manner (this is all very hard to understand for newbies).
And:
ConfigurationBuiler is misspelled on the page (without 'd').
The text was updated successfully, but these errors were encountered: