From a943891e10d5b376693379c75a68b5977e64ac36 Mon Sep 17 00:00:00 2001 From: Tim Maes <91606949+Tim-Maes@users.noreply.github.com> Date: Wed, 18 Oct 2023 08:46:33 +0200 Subject: [PATCH] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 767a65c..77f697b 100644 --- a/README.md +++ b/README.md @@ -46,10 +46,12 @@ dotnet add package Bindicate Add this line in a project to register all decorated services. You can repeat this line and pass any assembly. -```csharp -services.AddAutowiringForAssembly(Assembly.GetExecutingAssembly()); // Register all types in current project +``` +// Register all types in current project +services.AddAutowiringForAssembly(Assembly.GetExecutingAssembly()); -services.AddAutowiringForAssembly(Assembly.GetAssembly(typeof(IInterface))); // Register types from referenced project +// Register types from referenced project +services.AddAutowiringForAssembly(Assembly.GetAssembly(typeof(IInterface))); ``` **Register Services Across Multiple Assemblies**