예제 #1
0
        public static IMediator SetupMediatr()
        {
            ContainerBuilder builder = new ContainerBuilder();

            builder.RegisterAssemblyTypes(typeof(GetMoviesById).Assembly).AsImplementedInterfaces();
            return(BootstrapMediatr.BuildMediator(builder));
        }
예제 #2
0
        public HomeController()
        {
            ContainerBuilder builder = new ContainerBuilder();

            builder.RegisterAssemblyTypes(typeof(ListMoviesQuery).Assembly).AsImplementedInterfaces();
            _mediator = BootstrapMediatr.BuildMediator(builder);
        }
예제 #3
0
        public OurMoviesController()
        {
            ContainerBuilder builder = new ContainerBuilder();

            builder.RegisterAssemblyTypes(typeof(ListMoviesQuery).Assembly).AsImplementedInterfaces();
            //builder.RegisterAssemblyTypes(typeof(UploadFileByByteCommand).Assembly).AsImplementedInterfaces();
            _mediator = BootstrapMediatr.BuildMediator(builder);
        }