Пример #1
0
 public ResolvedAssignmentStatement(Location location, Entity source, SecondaryEntity target, bool targetReferencedByThis = false)
     : base(location)
 {
     Source = source;
     Target = target;
     TargetReferencedByThis = targetReferencedByThis;
 }
Пример #2
0
 public MyContext(
     GssNode <MyStackData, MyGssData> stackTop,
     SecondaryEntity reference)
     : base(stackTop)
 {
     Reference = reference;
 }
Пример #3
0
        public static ResolvedLocalVariable FindClosestLocalOwner(SecondaryEntity entity)
        {
            if (entity is ResolvedLocalVariable justLocalVariable)
            {
                return(justLocalVariable);
            }

            if (entity is ResolvedObjectField field)
            {
                return(FindClosestLocalOwner(field.OwningObject));
            }

            return(null);
        }
        public void RefreshFromSdkMessageFilter(SdkMessageFilter filter)
        {
            if (filter == null)
            {
                throw new ArgumentNullException("filter");
            }

            if (filter.SdkMessageFilterId != null)
            {
                MessageEntityId = filter.SdkMessageFilterId.Value;
            }

            if (filter.SdkMessageId != null)
            {
                MessageId = filter.SdkMessageId.Id;
            }

            if (!string.IsNullOrEmpty(filter.PrimaryObjectTypeCode))
            {
                PrimaryEntity = filter.PrimaryObjectTypeCode;
            }

            if (!string.IsNullOrEmpty(filter.SecondaryObjectTypeCode))
            {
                SecondaryEntity = filter.SecondaryObjectTypeCode;
            }

            if (filter.CustomizationLevel != null)
            {
                CustomizationLevel = filter.CustomizationLevel.Value;
            }

            if ((string.IsNullOrWhiteSpace(PrimaryEntity) || PrimaryEntity.Equals("none")) &&
                (string.IsNullOrWhiteSpace(SecondaryEntity) || SecondaryEntity.Equals("none")))
            {
                Availability = CrmPluginStepDeployment.Both;
            }
            else
            {
                Availability = (CrmPluginStepDeployment)Enum.ToObject(typeof(CrmPluginStepDeployment),
                                                                      filter.Availability.GetValueOrDefault());
            }

            CreatedOn  = filter.CreatedOn;
            ModifiedOn = filter.ModifiedOn;
        }
Пример #5
0
 public MyStackData(MyTransition callingEdge, SecondaryEntity trackedEntity, bool trampoline)
 {
     CallingEdge   = callingEdge;
     TrackedEntity = trackedEntity;
     Trampoline    = trampoline;
 }
Пример #6
0
 public override bool PropagateForward(SecondaryEntity recipient)
 {
     return(true);
 }
Пример #7
0
 public FakeTrampolineEntity(SecondaryEntity originalTarget)
 {
     OriginalTarget = originalTarget;
 }
Пример #8
0
 public void StoreAdditionalVariable(SecondaryEntity variable)
 {
     AdditionalVariables.Add(variable);
 }