-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Document IHostStartup (host lightup feature) #4438
Comments
@danroth27 You mean "IHostingStartup," correct? As David would say, "'IHostStartup' isn't a thing ... you just made that up!" 😄 lol |
@guardrex didn't this get completed? |
@Rick-Anderson No, it's one of the three remaining topics on the list to be written. I plan to get all three done in the three weeks between 🦃 Day and 🎄 break. |
When you edited the OP, you marked this for The issue title should be ...
@Tratcher I studied the comments,
... about what I had in my original sample, but you said, Gonnae no dae that! ... Gonnae no! (Scottish) Some comments are almost contradictory: For example when you said "inject code from outside of the application," that's not the same as "adding a code file with a class implementation to the project." One conversation between you and David indicates that only the primary assembly is scanned for the I could do it all in the app's assembly (but you said 'no' to my original sample on that), and I could do it as a class lib (but David said 'no' to that), but I can't do it as a bin-deployed assembly that injects code on a light-up basis. Someone on the engineering side can setup the sample, and I can take the topic forward from there. Otherwise, you'll have to explain the gap out so that I can build it. Anywho! It's Friday night! 😄 ... so let's pick back up next week. Have a great weekend! |
Injecting code from outside the app is the primary usage. It's in use in Azure today: Detecting additional config within the app is a secondary proposal that I don't think we're using anywhere yet. |
Perfect ... thx. I was trying to get it working via setting the hosting startup assembly key, so I'll just need to go with |
@Tratcher Brainstorming something useful for this feature as a sample ... How about diagnostics info? The guts are here 👉 https://github.com/guardrex/HostingStartupSample/blob/master/sample/StartupDiagnostics/StartupDiagnostics.cs Questions:
|
can be removed, we don't build it this way anymore.
4 and 7. As for There is a talk about packing all this tooling into a semi-supported package to be used by other team, but it's far from decided. |
So for
|
@pakrym I was thinking of using the dotnet install folders for this ( Oh ... and RE: dropping the entire service collection into the container ...
I want to make this a sane tool that could actually be used. If how I'm handling the descriptors is a sane way to shuttle the list of services to the middleware, then I'd rather stick with that over having to say "here's a useful tool example ... but don't use it." |
@guardrex use You don't have to put it into |
@pakrym @Tratcher I implemented the following:
Wrap the tool in another app, build, then trim, and move ... ei ei ei ... Geebers McScreebers! 😵 lol. If we go that way, we'd be getting wildly afield of the tool explaining all of that out. Also, trying to automate that for the sample is a bit much. It would be vastly simpler imo to do the following in an
Because that's all automated in the target, all the dev has to do with the sample is build it. 🎉 ... well ... they need PS installed, and there might be some additional PS-on-Linux/PS-on-Mac issues to address. https://github.com/guardrex/HostingStartupSample/tree/master/sample |
@Rick-Anderson The key issue is that to make consumption of the sample as pain-free as possible, I use a build target in the
I tested the PS script on Mac Mini, and it works. One prob tho: I can't run the app on the Mac because it's a 2009 unit, so it can't take Sierra, thus it can't do 2.0. All I could test is that the PS script commands run properly. I think it will be ok, but I can't guarantee it with this ancient Mac Mini. Shall I proceed to write this up with this approach? |
See Add docs for IHostedService #3352
The text was updated successfully, but these errors were encountered: