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)); }
public static RedirectToActionResult WithMptxInstanceId( this RedirectToActionResult result, MptxInstanceContext instanceContext) { return(WithMptxInstanceId(result, instanceContext.InstanceId)); }