public static void TrySaveSmartActionResult(this IClientMethodInvoke clientMethodInvoke, object result) { if (clientMethodInvoke == null) { return; } clientMethodInvoke.Bags[SmartActionResultKey] = result; }
public static T TryGetSmartActionInfo <T>(this IClientMethodInvoke clientMethodInvoke) where T : ISmartActionInfo { if (clientMethodInvoke == null) { return(default(T)); } clientMethodInvoke.Bags.TryGetValue(SmartActionInfoKey, out var smartActionInfo); if (smartActionInfo == null) { return(default(T)); } return((T)smartActionInfo); }
public static SmartActionInfo TryGetSmartActionInfo(this IClientMethodInvoke clientMethodInvoke) { return(TryGetSmartActionInfo <SmartActionInfo>(clientMethodInvoke)); }