-
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
IHostingStartup topic #4908
IHostingStartup topic #4908
Conversation
Updates Updates Updates Updates
@pakrym @Tratcher Let's TAL 👓 whenever ur ready and see how this is shaping up. Notes:
|
@@ -85,7 +85,7 @@ For global use, place the file in the `additonalDeps` folder of the .NET Core in | |||
<DRIVE>\Program Files\dotnet\additionalDeps\<FEATURE_ASSEMBLY_NAME>\shared\Microsoft.NETCore.App\2.0.0\ | |||
``` | |||
|
|||
Note that the version, `2.0.0`, reflects the version of the shared runtime that the target app uses (the shared runtime listed in *\*.runtimeconfig.json*). In the sample app, the shared runtime is specified in the *HostingStartupSample.runtimeconfig.json* file. | |||
Note the version, `2.0.0`, reflects the version of the shared runtime that the target app uses. The shared runtime listed in *\*.runtimeconfig.json*. In the sample app, the shared runtime is specified in the *HostingStartupSample.runtimeconfig.json* file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing "is"? ... perhaps with "file" and a def article:
The shared runtime is shown in the *\*.runtimeconfig.json* file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as long as a dev has signed off.
|
||
[!code-xml[Main](ihostingstartup/snapshot_sample/StartupFeature.csproj)] | ||
|
||
A [HostingStartupAttribute](/dotnet/api/microsoft.aspnetcore.hosting.hostingstartupattribute) identifies a class as an implementation of `IHostingStartup` for loading and execution when building the [IWebHost](/dotnet/api/microsoft.aspnetcore.hosting.iwebhost). In the following example, the namespace is `StartupFeature`, and the class is `StartupFeatureHostingStartup`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A [HostingStartup](/dotnet/api/microsoft.aspnetcore.hosting.hostingstartupattribute) attribute identifies a class as an implementation
A HostingStartup attribute identifies a class as an implementation
We usually write attributes that way give that's how they're used in code.
We need a real programmer to look at my dino hacks 🦎 on this one. 😄 |
@Rick-Anderson This wasn't signed-off by an engineering team member ... did they verbally say it was 'ok'? 😄 I'd sleep better if they look 👁️. |
This reverts commit 1e1f3e6.
Sorry I didn't get to this last week, I'm out of the office a lot this month. The content here is primarily focused on implementers, it doesn't cover any of the consumer mechanics. We get a lot of questions from folks about how to control and debug this injection process and I think we should add that information here. See this thread dotnet/aspnetcore#2051 |
Fixes #4438
Internal Review Topic
https://github.com/guardrex/HostingStartupSample