File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,6 +154,16 @@ The following code shows an example of a [HostBuilder] pipeline:
154154
155155:::code language="csharp" source="~ /azure-functions-dotnet-worker/samples/FunctionApp/Program.cs" id="docsnippet_startup":::
156156
157+ > [ !NOTE]
158+ > The above example from [ HostBuilder] pipeline has a line demonstrating dependency injection:
159+ >
160+ > ``` csharp
161+ > s .AddSingleton <IHttpResponderService , DefaultHttpResponderService >();
162+ > ```
163+ >
164+ > ** You can safely ignore this line .** This is sample code only . `IHttpResponderService ` and `DefaultHttpResponderService `
165+ > are not built -in Azure Function SDK types and are not relevant to a production application .
166+
157167This code requires `using Microsoft .Extensions .DependencyInjection ;`.
158168
159169Before calling `Build ()` on the `IHostBuilder `, you should :
You can’t perform that action at this time.
0 commit comments