public static void RemoveComponent(ComponentRecord record) { record.File.Delete(); StrategyComponentManager.wcrRFbhwry.fc56KRbFEA(record); StrategyComponentManager.gLhRsqD2VZ.Remove((object)record); StrategyComponentManager.IP7RCltgOJ(record); }
private static void sLsRSGwrU3([In] FileInfo obj0) { CompilerResults compilerResults = CompilingService.Compile(obj0.FullName, false); if (compilerResults.Errors.HasErrors) { ComponentRecord componentRecord = new ComponentRecord(Guid.Empty, ComponentType.Unknown, obj0.Name, "", obj0, (Type)null, compilerResults.Errors); StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); StrategyComponentManager.H13R1k6g2K(componentRecord); } else { bool flag = false; foreach (Type type in compilerResults.CompiledAssembly.GetTypes()) { ComponentRecord componentRecord = StrategyComponentManager.cN2R9Xa8LN(type, obj0); if (componentRecord != null) { StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); StrategyComponentManager.H13R1k6g2K(componentRecord); flag = true; } } if (flag) { return; } ComponentRecord componentRecord1 = new ComponentRecord(Guid.Empty, ComponentType.Unknown, obj0.Name, "", obj0, (Type)null, new CompilerErrorCollection(new CompilerError[1] { new CompilerError(obj0.FullName, -1, -1, "dfdfs", "fdsdfs") })); StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord1); StrategyComponentManager.H13R1k6g2K(componentRecord1); } }
public static IComponentBase GetComponent(Guid guid, object issuer) { ComponentRecord record1 = StrategyComponentManager.wcrRFbhwry.FindRecord(guid); if (record1 == null) { return((IComponentBase)null); } if (record1.IsChanged) { StrategyComponentManager.gLhRsqD2VZ.Remove((object)record1); CompilerResults compilerResults = CompilingService.Compile(record1.File.FullName, false); if (compilerResults.Errors.HasErrors) { record1.HrjA5j3PaA(compilerResults.Errors); return((IComponentBase)null); } else { record1.VnhAiVxt7S(false); foreach (Type type in compilerResults.CompiledAssembly.GetTypes()) { ComponentRecord componentRecord = StrategyComponentManager.cN2R9Xa8LN(type, record1.File); if (componentRecord != null) { record1.X8yAQiuh7R(componentRecord.RuntimeType); break; } } } } Hashtable hashtable = StrategyComponentManager.gLhRsqD2VZ[(object)record1] as Hashtable; if (hashtable == null) { hashtable = new Hashtable(); StrategyComponentManager.gLhRsqD2VZ.Add((object)record1, (object)hashtable); } IComponentBase componentBase = hashtable[issuer] as IComponentBase; if (componentBase == null) { ComponentRecord record2 = StrategyComponentManager.wcrRFbhwry.FindRecord(guid); componentBase = Activator.CreateInstance(record2.RuntimeType) as IComponentBase; componentBase.Name = record2.Name; componentBase.Description = record2.Description; hashtable.Add(issuer, (object)componentBase); } return(componentBase); }
private static void faQRIM6nIU([In] FileInfo[] obj0) { string source = ""; Dictionary<string, FileInfo> dictionary = new Dictionary<string, FileInfo>(); List<FileInfo> list1 = new List<FileInfo>(); List<FileInfo> list2 = new List<FileInfo>(); int num = 1; foreach (FileInfo fileInfo in obj0) { if (StrategyComponentManager.yNoRLNTZ2P.Contains(fileInfo.Name)) { StreamReader streamReader = new StreamReader(fileInfo.FullName); string index = num.ToString(); dictionary[index] = fileInfo; list1.Add(fileInfo); source = source + index + Environment.NewLine + Environment.NewLine + streamReader.ReadToEnd() + Environment.NewLine + Environment.NewLine; ++num; streamReader.Close(); } else list2.Add(fileInfo); } CompilerResults compilerResults = CompilingService.CompileSource(source); if (compilerResults.Errors.HasErrors) { foreach (FileInfo fileInfo in obj0) StrategyComponentManager.sLsRSGwrU3(fileInfo); } else { foreach (Type type in compilerResults.CompiledAssembly.GetTypes()) { if (type.IsPublic) { string index = type.FullName.Substring(0, type.FullName.IndexOf("")); FileInfo fileInfo = dictionary[index]; list1.Remove(fileInfo); ComponentRecord componentRecord = StrategyComponentManager.cN2R9Xa8LN(type, fileInfo); if (componentRecord != null) { StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); StrategyComponentManager.H13R1k6g2K(componentRecord); } } } foreach (FileInfo file in list1) { ComponentRecord componentRecord = new ComponentRecord(Guid.Empty, ComponentType.Unknown, file.Name, "", file, (Type) null, new CompilerErrorCollection(new CompilerError[1] { new CompilerError(file.FullName, -1, -1,"fddfs","trtr") })); StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); StrategyComponentManager.H13R1k6g2K(componentRecord); } foreach (FileInfo fileInfo in list2) StrategyComponentManager.sLsRSGwrU3(fileInfo); } }
public static void RemoveComponent(ComponentRecord record) { record.File.Delete(); StrategyComponentManager.wcrRFbhwry.fc56KRbFEA(record); StrategyComponentManager.gLhRsqD2VZ.Remove((object) record); StrategyComponentManager.IP7RCltgOJ(record); }
private static void sLsRSGwrU3([In] FileInfo obj0) { CompilerResults compilerResults = CompilingService.Compile(obj0.FullName, false); if (compilerResults.Errors.HasErrors) { ComponentRecord componentRecord = new ComponentRecord(Guid.Empty, ComponentType.Unknown, obj0.Name, "", obj0, (Type) null, compilerResults.Errors); StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); StrategyComponentManager.H13R1k6g2K(componentRecord); } else { bool flag = false; foreach (Type type in compilerResults.CompiledAssembly.GetTypes()) { ComponentRecord componentRecord = StrategyComponentManager.cN2R9Xa8LN(type, obj0); if (componentRecord != null) { StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); StrategyComponentManager.H13R1k6g2K(componentRecord); flag = true; } } if (flag) return; ComponentRecord componentRecord1 = new ComponentRecord(Guid.Empty, ComponentType.Unknown, obj0.Name, "", obj0, (Type) null, new CompilerErrorCollection(new CompilerError[1] { new CompilerError(obj0.FullName, -1, -1, "dfdfs", "fdsdfs") })); StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord1); StrategyComponentManager.H13R1k6g2K(componentRecord1); } }
public ComponentEventArgs(ComponentRecord record) { this.Record = record; }
private static void TXQRKdObj1([In] ComponentRecord obj0) { // if (StrategyComponentManager.GvhR0aa8Qx == null) // return; // StrategyComponentManager.GvhR0aa8Qx(new ComponentEventArgs(obj0)); }
private static void IP7RCltgOJ([In] ComponentRecord obj0) { // if (StrategyComponentManager.RBMRJwDgsx == null) // return; // StrategyComponentManager.RBMRJwDgsx(new ComponentEventArgs(obj0)); }
private static void H13R1k6g2K([In] ComponentRecord obj0) { // if (StrategyComponentManager.L7oR4xlqNi == null) // return; // StrategyComponentManager.L7oR4xlqNi(new ComponentEventArgs(obj0)); }
private static void faQRIM6nIU([In] FileInfo[] obj0) { string source = ""; Dictionary <string, FileInfo> dictionary = new Dictionary <string, FileInfo>(); List <FileInfo> list1 = new List <FileInfo>(); List <FileInfo> list2 = new List <FileInfo>(); int num = 1; foreach (FileInfo fileInfo in obj0) { if (StrategyComponentManager.yNoRLNTZ2P.Contains(fileInfo.Name)) { StreamReader streamReader = new StreamReader(fileInfo.FullName); string index = num.ToString(); dictionary[index] = fileInfo; list1.Add(fileInfo); source = source + index + Environment.NewLine + Environment.NewLine + streamReader.ReadToEnd() + Environment.NewLine + Environment.NewLine; ++num; streamReader.Close(); } else { list2.Add(fileInfo); } } CompilerResults compilerResults = CompilingService.CompileSource(source); if (compilerResults.Errors.HasErrors) { foreach (FileInfo fileInfo in obj0) { StrategyComponentManager.sLsRSGwrU3(fileInfo); } } else { foreach (Type type in compilerResults.CompiledAssembly.GetTypes()) { if (type.IsPublic) { string index = type.FullName.Substring(0, type.FullName.IndexOf("")); FileInfo fileInfo = dictionary[index]; list1.Remove(fileInfo); ComponentRecord componentRecord = StrategyComponentManager.cN2R9Xa8LN(type, fileInfo); if (componentRecord != null) { StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); StrategyComponentManager.H13R1k6g2K(componentRecord); } } } foreach (FileInfo file in list1) { ComponentRecord componentRecord = new ComponentRecord(Guid.Empty, ComponentType.Unknown, file.Name, "", file, (Type)null, new CompilerErrorCollection(new CompilerError[1] { new CompilerError(file.FullName, -1, -1, "fddfs", "trtr") })); StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); StrategyComponentManager.H13R1k6g2K(componentRecord); } foreach (FileInfo fileInfo in list2) { StrategyComponentManager.sLsRSGwrU3(fileInfo); } } }
public static void RegisterDefaultComponent(Type runtimeType) { ComponentRecord componentRecord = StrategyComponentManager.cN2R9Xa8LN(runtimeType, (FileInfo)null); StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); }
public static bool RebuildComponent(FileInfo file) { ComponentRecord[] records = StrategyComponentManager.wcrRFbhwry.FindRecords(file); foreach (ComponentRecord componentRecord in records) { componentRecord.HrjA5j3PaA(new CompilerErrorCollection()); StrategyComponentManager.gLhRsqD2VZ.Remove((object)componentRecord); } CompilerResults compilerResults = CompilingService.Compile(file.FullName, false); if (compilerResults.Errors.HasErrors) { foreach (ComponentRecord componentRecord in records) { componentRecord.HrjA5j3PaA(compilerResults.Errors); StrategyComponentManager.TXQRKdObj1(componentRecord); } return(false); } else { ArrayList arrayList1 = new ArrayList(); foreach (Type type in compilerResults.CompiledAssembly.GetTypes()) { ComponentRecord componentRecord = StrategyComponentManager.cN2R9Xa8LN(type, file); if (componentRecord != null) { arrayList1.Add((object)componentRecord); } } ArrayList arrayList2 = new ArrayList((ICollection)records); foreach (ComponentRecord componentRecord1 in arrayList1) { bool flag = false; foreach (ComponentRecord componentRecord2 in arrayList2) { if (componentRecord2.GUID == componentRecord1.GUID) { componentRecord2.lfVAUUDxYN(componentRecord1.Name); componentRecord2.x63AOXlRIK(componentRecord1.Description); componentRecord2.CvyAHpcreG(componentRecord1.ComponentType); componentRecord2.X8yAQiuh7R(componentRecord1.RuntimeType); componentRecord2.VnhAiVxt7S(false); flag = true; arrayList2.Remove((object)componentRecord2); StrategyComponentManager.TXQRKdObj1(componentRecord2); break; } } if (!flag) { StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord1); StrategyComponentManager.H13R1k6g2K(componentRecord1); } } foreach (ComponentRecord componentRecord in arrayList2) { if (componentRecord.GUID == Guid.Empty) { StrategyComponentManager.wcrRFbhwry.fc56KRbFEA(componentRecord); StrategyComponentManager.IP7RCltgOJ(componentRecord); } } return(true); } }
internal void fc56KRbFEA([In] ComponentRecord obj0) { this.NJl6XLSgmP.Remove((object)obj0); }
internal void ROm6C46rfm([In] ComponentRecord obj0) { this.NJl6XLSgmP.Add((object)obj0); }