main
|
Last change
on this file since 877c13c was 877c13c, checked in by kikisrbinoska <srbinoskakristina07@…>, 4 months ago |
|
Added files
|
-
Property mode
set to
100644
|
|
File size:
443 bytes
|
| Line | |
|---|
| 1 | using Microsoft.Extensions.DependencyInjection;
|
|---|
| 2 |
|
|---|
| 3 | namespace ChapterX.Application
|
|---|
| 4 | {
|
|---|
| 5 | public static class DependencyInjection
|
|---|
| 6 | {
|
|---|
| 7 | public static IServiceCollection AddApplication(this IServiceCollection services)
|
|---|
| 8 | {
|
|---|
| 9 | services.AddMediatR(config =>
|
|---|
| 10 | {
|
|---|
| 11 | config.RegisterServicesFromAssembly(typeof(DependencyInjection).Assembly);
|
|---|
| 12 | });
|
|---|
| 13 |
|
|---|
| 14 | return services;
|
|---|
| 15 | }
|
|---|
| 16 | }
|
|---|
| 17 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.