From 7fca16b941f045a277070080dabbeca2a0ffe11b Mon Sep 17 00:00:00 2001 From: Tim Maes <91606949+Tim-Maes@users.noreply.github.com> Date: Thu, 11 Jan 2024 14:58:25 +0100 Subject: [PATCH] Update README.md --- README.md | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/README.md b/README.md index b3592f2..03907e9 100644 --- a/README.md +++ b/README.md @@ -69,34 +69,8 @@ builder.Services .ForKeyedServices() .WithOptions(Configuration) //Pass builder.Configuration here .Register(); - -// Register types and options from referenced project -builder.Services - .AddAutowiringForAssembly(Assembly.GetAssembly(typeof(IInterface))) - .WithOptions(Configuration) - .Register(); ``` -**Example with ServiceCollectionExtensions** - -```csharp -// Hosting project: -var configuration = builder.Configuration; - -builder.Services.AddSecondProject(configuration); - -// In other project -public static IServiceCollection AddSecondProject(this IServiceCollection services, IConfiguration configuration) - { - services.AddAutowiringForAssembly(Assembly.GetExecutingAssembly()) - .WithOptions(configuration) - .Register(); - - return services; - } -``` - - ## Decorate your services: ### Basic usage