Skip to content
Discussion options

You must be logged in to vote

In case anyone else needs this, I think its as simple as:

// Configure your container above
var provider = new Unity.Microsoft.DependencyInjection.ServiceProviderFactory(container);
Csla.ApplicationContext.DefaultServiceProvider = provider.CreateServiceProvider(container);

I needed to add Microsoft.Extensions.DependencyInjection and Unity.Microsoft.DependencyInjection nuget packages. Once I did that, dependencies were being correctly injected into the data portal methods.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@rockfordlhotka
Comment options

@ajohnstone-ks
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ajohnstone-ks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants