internal virtual void CheckTargetChange(MethodHandle oldTarget, MethodHandle newTarget) { MethodType oldType = oldTarget.Type(); MethodType newType = newTarget.Type(); // null check! if (!newType.Equals(oldType)) { throw WrongTargetType(newTarget, oldType); } }
/// <summary> /// 获取业务规则或业和业务方法列表 /// </summary> /// <returns>业务规则或业和业务方法列表</returns> private List <Item> GetServiceCodesList() { List <Item> list = new List <Item>(); BizService[] services = this.Engine.BizBus.GetBizServices(); //services = this.Engine.WorkflowPackageManager.GetBizServiceBySchemaCode(this.SchemaCode, MethodType); if (services != null) { list.Add(new Item("EditBizObjectSchemaMethodMap.SelectItem", "")); foreach (BizService service in services) { if ( (MethodType.Equals("ServiceMethod") && !service.BizAdapterCode.Equals(DataModel.Declaration.RuleAdapter_Code)) || (MethodType.Equals("RuleMethod") && service.BizAdapterCode.Equals(DataModel.Declaration.RuleAdapter_Code)) ) { list.Add(new Item(service.FullName, service.Code)); } } } return(list); }