diff --git a/README.md b/README.md index 9703dae..84a3a84 100644 --- a/README.md +++ b/README.md @@ -26,13 +26,13 @@ Install-Package Weikio.PluginFramework.AspNetCore Using Plugin Framework can be as easy as adding a single new line into ConfigureServices: -``` +```csharp services.AddPluginFramework(@".\myplugins"); ``` The code finds all the plugins (types that implement the custom IOperator-interface) from the myplugins-folder. The plugins can be used in a controller using constructor injection: -``` +```csharp public CalculatorController(IEnumerable operator) { _operators = operators; @@ -41,7 +41,7 @@ public CalculatorController(IEnumerable operator) Alternatively, you can provide multiple plugin locations using catalogs: -``` +```csharp var folderPluginCatalog = new FolderPluginCatalog(@".\myplugins", type => { type.Implements(); @@ -149,4 +149,4 @@ Thanks to the following contributors who have helped with the project: ## License -Plugin Framework is available as an open source, MIT-licensed project. \ No newline at end of file +Plugin Framework is available as an open source, MIT-licensed project.