예제 #1
0
        public static Container Register(Registry registryToExtend = null)
        {
            registryToExtend?.IncludeRegistry <RootRegistry>();
            var container = new Container(cfg =>
            {
                cfg.AddRegistry <RootRegistry>();
            });

            ResolverRoot.Init();
            return(container);
        }
예제 #2
0
        public static IMediator BuildMediator()
        {
            var mediator = ResolverRoot.Resolve <IMediator>();

            return(mediator);
        }