public static IMediator SetupMediatr() { ContainerBuilder builder = new ContainerBuilder(); builder.RegisterAssemblyTypes(typeof(GetMoviesById).Assembly).AsImplementedInterfaces(); return(BootstrapMediatr.BuildMediator(builder)); }
public HomeController() { ContainerBuilder builder = new ContainerBuilder(); builder.RegisterAssemblyTypes(typeof(ListMoviesQuery).Assembly).AsImplementedInterfaces(); _mediator = BootstrapMediatr.BuildMediator(builder); }
public OurMoviesController() { ContainerBuilder builder = new ContainerBuilder(); builder.RegisterAssemblyTypes(typeof(ListMoviesQuery).Assembly).AsImplementedInterfaces(); //builder.RegisterAssemblyTypes(typeof(UploadFileByByteCommand).Assembly).AsImplementedInterfaces(); _mediator = BootstrapMediatr.BuildMediator(builder); }