0

I can get a collection of the plugins by using the following call:

_schemas = _container.Resolve<IEnumerable<Lazy<IPersistedModel,ISchemaVersion>>>();

Depending on the metadata, I want to create a different instance.

I can create an instance by simply accessing the Value property.

The problem is there is no way to pass a parameter when doing it this way.

Can this be done?

1 Answer 1

1

You could configure the resolved instance registering the OnActivating, OnActivate take a look here.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.