Esempio n. 1
0
        public static void TrySaveSmartActionResult(this IClientMethodInvoke clientMethodInvoke, object result)
        {
            if (clientMethodInvoke == null)
            {
                return;
            }

            clientMethodInvoke.Bags[SmartActionResultKey] = result;
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public static SmartActionInfo TryGetSmartActionInfo(this IClientMethodInvoke clientMethodInvoke)
 {
     return(TryGetSmartActionInfo <SmartActionInfo>(clientMethodInvoke));
 }