コード例 #1
0
 public static MethodContinuationData CreateMethodContinuationData(ContinueRoutineIntent intent, ITransitionContext context)
 {
     return(new MethodContinuationData
     {
         IntentId = intent.Id,
         ContinueAt = intent.ContinueAt,
         Service = intent.Service,
         Method = intent.Method,
         TaskId = intent.TaskId,
         Caller = context.CurrentAsCaller(),
         Result = (IValueContainer)intent.Result
     });
 }
コード例 #2
0
 public static MethodInvocationData CreateMethodInvocationData(ExecuteRoutineIntent intent, ITransitionContext context)
 {
     return(new MethodInvocationData
     {
         IntentId = intent.Id,
         Service = intent.Service,
         Method = intent.Method,
         Parameters = intent.Parameters,
         Continuation = intent.Continuation,
         Caller = context?.CurrentAsCaller(),
         FlowContext = context?.FlowContext
     });
 }