protected override void OnCreateDynamicUpdateMap(NativeActivityUpdateMapMetadata metadata, Activity originalActivity) { metadata.AllowUpdateInsideThisActivity(); }
protected virtual void OnCreateDynamicUpdateMap(NativeActivityUpdateMapMetadata metadata, Activity originalActivity) { // default UpdateMapMetadata.AllowUpdateInsideThisActivity is TRUE if (!metadata.IsUpdateExplicitlyAllowedOrDisallowed && !DoPublicChildrenMatch(metadata, this, originalActivity)) { metadata.DisallowUpdateInsideThisActivity(SR.PublicChildrenChangeBlockDU); } }
protected override void OnCreateDynamicUpdateMap(NativeActivityUpdateMapMetadata metadata, Activity originalActivity) { PickBranchBody originalBranchBody = (PickBranchBody)originalActivity; if ((originalBranchBody.Action != null && metadata.GetMatch(this.Trigger) == originalBranchBody.Action) || (this.Action != null && metadata.GetMatch(this.Action) == originalBranchBody.Trigger)) { metadata.DisallowUpdateInsideThisActivity(SR.PickBranchTriggerActionSwapped); return; } metadata.AllowUpdateInsideThisActivity(); }
internal sealed override void OnInternalCreateDynamicUpdateMap(DynamicUpdateMapBuilder.Finalizer finalizer, DynamicUpdateMapBuilder.IDefinitionMatcher matcher, Activity originalActivity) { NativeActivityUpdateMapMetadata metadata = new NativeActivityUpdateMapMetadata(finalizer, matcher, this); try { OnCreateDynamicUpdateMap(metadata, originalActivity); } finally { metadata.Dispose(); } }
protected override void OnCreateDynamicUpdateMap(NativeActivityUpdateMapMetadata metadata, Activity originalActivity) { InternalReceiveMessage originalInternalReceive = (InternalReceiveMessage)originalActivity; if (this.ServiceContractName != originalInternalReceive.ServiceContractName) { metadata.SaveOriginalValue(ServiceContractNamePropertyName, originalInternalReceive.ServiceContractName); } if (this.OperationName != originalInternalReceive.OperationName) { metadata.SaveOriginalValue(OperationNamePropertyName, originalInternalReceive.OperationName); } }