Exemple #1
0
 public MptxInstanceContext <TState, TParentState> CreateInstance <TState, TParentState>(
     MptxInstanceContext <TParentState> parent,
     IReadOnlyDictionary <string, object> contextItems = null)
     where TState : IMptxState <TParentState>
     where TParentState : IMptxState
 {
     return((MptxInstanceContext <TState, TParentState>)CreateInstance(
                typeof(TState),
                parent.InstanceId,
                typeof(TParentState),
                contextItems));
 }
Exemple #2
0
 public static RedirectToActionResult WithMptxInstanceId(
     this RedirectToActionResult result,
     MptxInstanceContext instanceContext)
 {
     return(WithMptxInstanceId(result, instanceContext.InstanceId));
 }