Closed mcdis closed 6 years ago
Currently the way ExportAs<T>
returns a configuration object that allows you to configure the lifestyle and other facets.
I'd be open to adding another extension method that goes off of container or is named something else like Register
May be add some .Configure() alias? For example
IInjectionScope Cfg(this IInjectionScope _this, Action<IExportRegistrationBlock> _cfg);
or use another interface in IExportRegistrationBlock that provide chainy technique but inside it's work over IExportRegistrationBlock but syntax more compact
I'm going to close this out as C# extensions can be used to simulate this.
Think does it possible to make configuration more simple and more chainy (more compact): example: c - container
another example