protected sealed override void OnCreateDynamicUpdateMap(UpdateMapMetadata metadata, Activity originalActivity) { // NO OP }
internal static bool DoPublicChildrenMatch(UpdateMapMetadata metadata, Activity updatedActivity, Activity originalActivity) { return ActivityComparer.ListEquals(updatedActivity.Children, originalActivity.Children, metadata.AreMatch) && ActivityComparer.ListEquals(updatedActivity.Delegates, originalActivity.Delegates, metadata.AreMatch) && ActivityComparer.ListEquals(updatedActivity.ImportedChildren, originalActivity.ImportedChildren, metadata.AreMatch) && ActivityComparer.ListEquals(updatedActivity.ImportedDelegates, originalActivity.ImportedDelegates, metadata.AreMatch); }
protected override void OnCreateDynamicUpdateMap(UpdateMapMetadata metadata, Activity originalActivity) { if (this.IsInvalidContentChangeFrom(((Receive)originalActivity).InternalContent)) { // Due to technical limitation, we don't currently support changing from untyped MessageContent to typed MessageContent or ParametersContent and vice versa. metadata.DisallowUpdateInsideThisActivity(SR.ReceiveContentChanged); } else if (this.HasCorrelationsChanged(((Receive)originalActivity).CorrelationInitializers)) { // we don't currently support changing CorrelationInitializers collection of Receive due to technical limitation. // This change could be detected and blocked for update by the runtime, but we check this early // so that we can provide more meaningful error message. metadata.DisallowUpdateInsideThisActivity(SR.ReceiveCorrelationInitializiersChanged); } }
protected sealed override void OnCreateDynamicUpdateMap(UpdateMapMetadata metadata, Activity originalActivity) { throw FxTrace.Exception.AsError(new InvalidOperationException(SR.WrongOnCreateDynamicUpdateMapForNativeActivity)); }