Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Maes committed Oct 18, 2023
1 parent 728529e commit a943891
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down

0 comments on commit a943891

Please sign in to comment.