Example #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            DependenciesConfig.RegisterDependencies();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            DocumentFileService documentFileService = new DocumentFileService(new Logger());

            //OJOOO activar
            documentFileService.CreateAndConfigureAsync();

            DbConfiguration.SetConfiguration(new SiccoApp.Persistence.SiccoAppConfiguration());
        }
Example #2
0
        public SearchViewModel()
        {
            var isDesignMode = (bool)DesignerProperties.IsInDesignModeProperty.GetMetadata(typeof(DependencyObject)).DefaultValue;

            if (isDesignMode)
            {
                return;
            }

            this.addFileJobToDataBase = AppContext.GetObject <AddFileJobToDataBase>();

            this.synchronizeDocumentFile = AppContext.GetObject <SynchronizeDocumentFile>();
            this.documentFileService     = AppContext.GetObject <DocumentFileService>();

            this.getFileJobList = AppContext.GetObject <GetFileJobList>();

            this.searchHelper = AppContext.GetObject <SearchHelper>();

            this.HitList.Value  = new List <VmHit>();
            this.PageList.Value = new List <Page>();

            this.status = Status.Wait;
            this.UpdateControlStatus();
        }