Exemplo n.º 1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     AutofacConfiguration.Config();
 }
Exemplo n.º 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            AutoMapperConfig.RegisterMappings();
            AutofacConfiguration.Config();

            var navigayionViewModel = DependencyResolver.Current.Resolve <NavigationViewModel>();
            var window = new MainWindow(navigayionViewModel);

            window.Show();
        }
Exemplo n.º 3
0
        public void Configuration(IAppBuilder app)
        {
            AutofacConfiguration.Config(app);
            AutoMapperConfiguration.Configure();
            ConfigureAuth(app);
            GlobalConfig.JsonFormatterConfig();

            /*
             * If you installed CKSource.CKFinder.Connector.Logs.NLog you can start the logger:
             * LoggerManager.LoggerAdapterFactory = new NLogLoggerAdapterFactory();
             * Keep in mind that the logger should be initialized only once and before any other
             * CKFinder method is invoked.
             */
            /*
             * Register the "local" type backend file system.
             */
            FileSystemFactory.RegisterFileSystem <LocalStorage>();

            /*
             * Map the CKFinder connector service under a given path. By default the CKFinder JavaScript
             * client expect the ASP.NET connector to be accessible under the "/ckfinder/connector" route.
             */
            app.Map("/ckfinder/connector", SetupConnector);
        }