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 }); }
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 }); }