Skip to content

Commit

Permalink
Fixed headings.
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnetjunkie committed Aug 10, 2023
1 parent 93b88c8 commit 0a88709
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/aspnetintegration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ To install from the NuGet package manager console:
PM> Install-Package SimpleInjector
PM> Install-Package SimpleInjector.Integration.AspNetCore.Mvc
.. _core-6-program_example:

ASP.NET Core 6 program.cs integration example
---------------------------------------------
=============================================

The following code snippet shows how to use the integration package to apply Simple Injector to your ASP.NET Core 6 (and up) web application's program.cs:

Expand Down Expand Up @@ -105,8 +107,10 @@ The following code snippet shows how to use the integration package to apply Sim

**TIP**: By using **AddSimpleInjector**, you allow the Simple Injector **Container** to be automatically disposed when the application shuts down. To override this behavior, please read :ref:`this <disposing-the-container>`.

.. _core-startup_example:

ASP.NET Core Startup class integration example
----------------------------------------------
==============================================

Prior to ASP.NET Core 6, startup code had to be written in the `Startup` class, which was created by the default Visual Studio template for ASP.NET Core. The following code snippet shows how to use the integration package to apply Simple Injector to that 'old' `Startup` class.

Expand Down

0 comments on commit 0a88709

Please sign in to comment.