Exemplo n.º 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;
 }
Exemplo n.º 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));
        }