示例#1
0
 public Entity(string name, TaskInvocationInfo taskInvocationInfo, Dictionary <string, List <string> > reportPropertyCmdletParamsMap, IReportAnnotation annotation)
 {
     this.Name = name;
     this.TaskInvocationInfo            = taskInvocationInfo;
     this.ReportPropertyCmdletParamsMap = reportPropertyCmdletParamsMap;
     this.Annotation = annotation;
 }
示例#2
0
        public static IEntity CreateEntity(string name, TaskInvocationInfo taskInvocationInfo, Dictionary <string, List <string> > reportPropertyCmdletParamsMap, IReportAnnotation annotation)
        {
            CreateEntityDelegate @delegate = DependencyFactory.GetDelegate <CreateEntityDelegate>();

            if (@delegate != null)
            {
                return(@delegate(name, taskInvocationInfo, reportPropertyCmdletParamsMap, annotation));
            }
            return(new Entity(name, taskInvocationInfo, reportPropertyCmdletParamsMap, annotation));
        }