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; }
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)); }