예제 #1
0
        public void Run(PlatformModule module = null)
        {
            var builder = new ContainerBuilder();

            ConfigureCore(builder);
            ConfigurePlatform(builder, module);

            var container = builder.Build();
            var viewFactory = container.Resolve<IViewFactory>();
            RegisterViews(viewFactory);

            ConfigureApplication(container);
        }
예제 #2
0
 protected void ConfigurePlatform(ContainerBuilder builder, PlatformModule module)
 {
     if (module != null)
         builder.RegisterModule(module);
 }