// Token: 0x060001A5 RID: 421 RVA: 0x000100AC File Offset: 0x0000E2AC public static void ListModel() { if (FacadeParams._RegistryParams.Count <= 0) { MockSerializerManager.CompareModel("CHECKCOMPLETE", new string[0]); MockSerializerManager.RemoveModel(); return; } if (VisitorImporterListener._WorkerWrapper < FacadeParams._RegistryParams.Count) { PredicateParamsFactory predicateParamsFactory = new PredicateParamsFactory(); predicateParamsFactory.ReflectModel(); predicateParamsFactory.NewSerializer(); if (FacadeParams._RegistryParams[VisitorImporterListener._WorkerWrapper].Contains("/")) { Directory.CreateDirectory(Path.GetDirectoryName(PredicateParamsFactory.m_FieldWrapper + "\\" + FacadeParams._RegistryParams[VisitorImporterListener._WorkerWrapper])); } WebClient webClient = new WebClient(); webClient.Headers.Add("user-agent", FacadeParams._PageParams); webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(VisitorImporterListener.RunModel); webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(VisitorImporterListener.FillModel); VisitorImporterListener.m_CollectionWrapper.Start(); webClient.DownloadFileAsync(new Uri(FacadeParams.proxyParams + FacadeParams._RegistryParams[VisitorImporterListener._WorkerWrapper]), PredicateParamsFactory.m_FieldWrapper + "\\" + FacadeParams._RegistryParams[VisitorImporterListener._WorkerWrapper]); return; } MockSerializerManager.CompareModel("DOWNLOADCOMPLETE", new string[0]); MockSerializerManager.RemoveModel(); FacadeParams._GlobalParams = 1; }
// Token: 0x0600019F RID: 415 RVA: 0x0000FFB0 File Offset: 0x0000E1B0 private static void ReadModel(object ident, object result) { PredicateParamsFactory predicateParamsFactory = new PredicateParamsFactory(); predicateParamsFactory.ReflectModel(); predicateParamsFactory.NewSerializer(); foreach (FacadeParams.InterceptorSerializerManager interceptorSerializerManager in FacadeParams.m_ParserParams) { FacadeParams.m_ConfigurationParams += interceptorSerializerManager.consumerParams; ResolverWrapper.m_DefinitionWrapper.ReportProgress(0, Path.GetFileName(interceptorSerializerManager.proccesorParams)); if (!File.Exists(PredicateParamsFactory.m_FieldWrapper + "\\" + interceptorSerializerManager.proccesorParams) || MockSerializerManager.SortModel(PredicateParamsFactory.m_FieldWrapper + "\\" + interceptorSerializerManager.proccesorParams) != interceptorSerializerManager.m_CustomerParams) { FacadeParams._RegistryParams.Add(interceptorSerializerManager.proccesorParams); } else { FacadeParams._CollectionParams += interceptorSerializerManager.consumerParams; ResolverWrapper.m_DefinitionWrapper.ReportProgress(1); } } }