예제 #1
0
 protected override void Execute(NativeActivityContext context)
 {
     System.Activities.Handle property = null;
     if ((this.Handle == null) || this.Handle.IsEmpty)
     {
         property = this.declaredHandle.Get(context);
     }
     else
     {
         property = this.Handle.Get(context);
     }
     if (property == null)
     {
         throw FxTrace.Exception.ArgumentNull("Handle");
     }
     context.Properties.Add(property.ExecutionPropertyName, property);
     if (this.Body != null)
     {
         context.ScheduleActivity(this.Body);
     }
 }