From 6623ee9b1f2f97f19ec50e841054ee180b44b6e5 Mon Sep 17 00:00:00 2001 From: Jeff Ward Date: Mon, 5 Dec 2022 03:25:13 -0500 Subject: [PATCH] Added colors --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.