Executing any delegate method with arguments filled from dependency injection

This post is particularly interesting because it details how to execute any delegate method (async or not) with its arguments filled from dependency injection: .NET One-line Scoped Initializers with Dependency Injection | Khalid Abuhakmeh. It use Delegate type as ancestor of any delegate.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s