Browse Source

Update Setting-Management.md

Added 'ITransientDependency' interface to CustomSettingProvider class, so the following exception will not be thrown:
ComponentNotRegisteredException: The requested service 'CustomSettingProvider' has not been registered.
pull/10636/head
Igor Korolenko 4 years ago
committed by GitHub
parent
commit
2bb51729d8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/en/Modules/Setting-Management.md

2
docs/en/Modules/Setting-Management.md

@ -88,7 +88,7 @@ Setting Management module is extensible, just like the [setting system](../Setti
If you want to create your own provider, implement the `ISettingManagementProvider` interface or inherit from the `SettingManagementProvider` base class:
````csharp
public class CustomSettingProvider : SettingManagementProvider
public class CustomSettingProvider : SettingManagementProvider, ITransientDependency
{
public override string Name => "Custom";

Loading…
Cancel
Save