Created
March 29, 2018 23:09
-
-
Save wellingtonjhn/ada390eb9185741b2892f77ea3206aca to your computer and use it in GitHub Desktop.
MediatR Dependency Injection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| services.AddMediatR(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| var assembly = AppDomain.CurrentDomain.Load("DemoMediatrAspNetCore.Application"); | |
| services.AddMediatR(assembly); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment