private void CollectActionsInSelfPackage() { // 整合自己包里面的Action foreach (Type type in GetAllTypes()) { if (type.IsSubclassOf(typeof(BaseAction))) { ActionsManagement.AddActionType(type.Name, type); } else if (type.IsSubclassOf(typeof(DataSource))) { DataSourceManagement.AddDataSourceType(type.Name, type); } } }
/// /////////////////////////////////////// /// 以下为本Package自己的任务 private void CollectActionsInOtherPackage(BaseProfile profile) { // 整合别的包里面的Action foreach (Type type in profile.GetAllTypes()) { if (type.IsSubclassOf(typeof(BaseAction))) { ActionsManagement.AddActionType(type.Name, type); } else if (type.IsSubclassOf(typeof(DataSource))) { DataSourceManagement.AddDataSourceType(type.Name, type); } } }