Skip to content

Commit 929cb56

Browse files
Added instructions for registering dependencies
1 parent d885a68 commit 929cb56

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Diff for: README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,18 @@ If your MVC site can perform operations that generate staging tasks (
186186
If you need to prevent staging tasks from being generated in a .NET Framework MVC app, add the NuGet package to your MVC app and add the same web.config settings that you added to the CMS app's web.config, to your MVC app's web.config.
187187

188188
#### Using in a .NET Core App
189-
If you are using a .NET Core app with Xperience 13, you can also use this module to prevent staging tasks from being generated. Add the NuGet package to your .NET Core app. The module will read from your appsettings.json configuration instead of from a web.config file. Add your configurations using the following appsettings.json sample:
189+
If you are using a .NET Core app with Xperience 13, you can also use this module to prevent staging tasks from being generated. Here's how to add it to a .NET Core app:
190+
191+
1. Add the NuGet package to your .NET Core app.
192+
2. Add the following using statement to your application startup:
193+
```
194+
using KenticoCommunity.StagingConfigurationModule.Extensions;
195+
```
196+
3. Call the extension method `AddStagingConfigurationModuleServices` on the services collection to register the module's dependencies:
197+
```
198+
services.AddStagingConfigurationModuleServices(Configuration);
199+
```
200+
4. The module will read from your appsettings.json configuration instead of from a web.config file. Add your configurations using the following appsettings.json sample:
190201

191202
```
192203
"stagingConfiguration": {

0 commit comments

Comments
 (0)