public CrmPluginImage(CrmOrganization org, Guid assemblyId, Guid pluginId, Guid stepId, Guid imageId, string attributes,
     string relatedAttribute, string entityAlias, CrmPluginImageType imageType, string messagePropertyName, int customizationLevel,
     DateTime? createdOn, DateTime? modifiedOn)
     : this(org)
 {
     AssemblyId = assemblyId;
     PluginId = pluginId;
     StepId = stepId;
     ImageId = imageId;
     Attributes = attributes;
     RelatedAttribute = relatedAttribute;
     EntityAlias = entityAlias;
     ImageType = imageType;
     MessagePropertyName = messagePropertyName;
     CustomizationLevel = customizationLevel;
     UpdateDates(createdOn, modifiedOn);
 }
예제 #2
0
 public CrmPluginImage(
     Guid assemblyId,
     Guid pluginId,
     Guid stepId,
     string attributes,
     string relatedAttribute,
     string entityAlias,
     CrmPluginImageType imageType,
     string messagePropertyName,
     string name)
 {
     AssemblyId          = assemblyId;
     PluginId            = pluginId;
     StepId              = stepId;
     Attributes          = attributes;
     RelatedAttribute    = relatedAttribute;
     EntityAlias         = entityAlias;
     ImageType           = imageType;
     MessagePropertyName = messagePropertyName;
     Name = name;
 }
 private static CrmPluginImage CreateImage(CrmPluginStep step, string imageAttributes, string pluginMessageName, CrmPluginImageType pluginImageType)
 {
     return
         (new CrmPluginImage(
              step.AssemblyId,
              step.PluginId,
              step.Id,
              imageAttributes,
              null,
              pluginImageType == CrmPluginImageType.PreImage ? "preimage" : "postimage",
              pluginImageType,
              CrmMessage.Instance[pluginMessageName],
              pluginImageType == CrmPluginImageType.PreImage ? "preimage" : "postimage"));
 }