Closed Mike-E-angelo closed 4 years ago
The other observation of note is that the ExportDecorator
method I am using in the above test is a void
method, which seems different from all the other fluent-based method calls that I see having to deal with decorator (and pretty much everything else 😆), so perhaps this is not the right method to call.
I did not see any others or equivalents that perform the same registration as I am attempting to do here, nor have I found any documentation around decorations, but will continue to search in the meantime and update here accordingly.
Hi mike
I’ll take a look today. I’m not exactly sure why it’s doing this.
@Mike-EEE It looks like the generic ExportDecorator
method indeed returns void
, whereas the non-generic one returns IFluentDecoratorStrategyConfiguration
.
Good catch, I apparently overlooked the delegate decorator configuration.
Woohoo, happy to "help" yall. 😆
I've committed a fix for this issue and I'll be looking to do a Beta release this weekend with a couple other issues.
I'll update this issue when they are released.
Great! Thank you, @ipjohnson!
Hi @Mike-EEE
I've pushed a beta package to NuGet to address this so you'll need to install Grace.7.1.1-Beta784
Awesome, thank you @ipjohnson! I can confirm that this now works as expected on my side. 👍 I appreciate the quick weekend efforts!
Your welcome any other issues let me know
Hello there,
I am exploring the use of this library, but am having some difficulty with decorations during the configuration of a host builder.
Here is the xUnit test I am developing:
When using the above, I get a rather lengthy error:
... much repeat. 😆
My intent here is to utilize the "built-in"
Microsoft.DependencyInjection.Abstractions
(AddSingleton
,AddTransient
,AddScoped
, etc) and then use theConfigureContainer
for Grace-specific functionality such as decoration.FWIW, this approach worked fine when using LightInject, but because it appears that it does some funny business with
Func<,>
delegates that cannot be turned off, it has forced me to consider alternatives.Is there a very obvious method call and/or configuration I am overlooking, perhaps?
Thank you for any assistance you can provide and for your efforts into this library. 👍