Пример #1
0
 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);
     }
 }