Grace icon indicating copy to clipboard operation
Grace copied to clipboard

Grace is a feature rich dependency injection container library

Results 40 Grace issues
Sort by recently updated
recently updated
newest added

Consider a situation where I have a default implementation for an interface and some decorators, now I could use grace to register my decorators like the following: ```cs public void...

question

I have the following scenario but am not sure how to solve it in Grace: A service requires a dependency that is resolved with a string parameter sent to its...

For example: How is `TypesThat` used? How do we correctly use `ExportAssembly` More samples regarding fluent API usage. For example, I did this: To register all the **Tools** in a...

It would be good to provide an extension method similar to the aspnet one you already have `UseGrace` on the `IHostBuilder` (`Microsoft.Extensions.Hosting`) similar to https://github.com/dotnet/orleans/blob/master/src/Orleans.Runtime/Hosting/GenericHostExtensions.cs#L21 What do you think? Perhaps...

Hello, I need something like : Export().As().Where(generic parameter is "InjectedInto" object type) Is there any existing way to do this ? Thank you.

enhancement

Hi I saw there is an implementation for asp.net, but was wondering if it could be implemented with just microsoft.extensions.dependencyinjection/Hosting? Aka for non web based .net core applications.

This branch adds support for new .net 8.0 DI features, to support https://github.com/ipjohnson/Grace.DependencyInjection.Extensions/pull/36 Required features: - [x] Adapters for attributes that don't implement `IImportAttribute`, such as `[FromKeyedServices]`. - [x] Registering...

As per the discussion in [this thread](https://github.com/ipjohnson/Grace/pull/314) and specifically using jods4:net8 PR branch Will open an new issue so not to clutter the other thread --- During startup Im having...

I am getting an exception on this line: ```cs e.Client.ClientSession = _container.Locate(new { clientSocket = e.Client }); ``` I am registering my object: ```cs _ = builder.Export().As(); ``` And my...

Net 8 is coming out soon and adds native AOT. Trim annotation is required for the trimmer to work correctly. Thanks again for the great work you do.