Exemplo n.º 1
0
 internal static void SendCallbacks <T>(IJsonPluggableLibrary jsonPluggableLibrary, ChannelEntity channelEntity,
                                        List <object> itemMessage, CallbackType callbackType, bool checkType)
 {
     if ((itemMessage != null) && (itemMessage.Count > 0))
     {
         SendCallbackChannelEntity <T> (jsonPluggableLibrary, channelEntity, itemMessage, callbackType, checkType);
     }
     #if (ENABLE_PUBNUB_LOGGING)
     else
     {
         LoggingMethod.WriteToLog(string.Format("DateTime {0}, SendCallbacks: itemMessage null", DateTime.Now.ToString()), LoggingMethod.LevelInfo);
     }
     #endif
 }
Exemplo n.º 2
0
        internal static void SendCallback <T>(IJsonPluggableLibrary jsonPluggableLibrary, ChannelEntity channelEntity,
                                              List <object> itemMessage, CallbackType callbackType)
        {
            PubnubChannelCallback <T> channelCallbacks = channelEntity.ChannelParams.Callbacks as PubnubChannelCallback <T>;

            if (channelCallbacks != null)
            {
                SendCallbackBasedOnType <T> (jsonPluggableLibrary, channelCallbacks, itemMessage, callbackType);
            }
            #if (ENABLE_PUBNUB_LOGGING)
            else
            {
                LoggingMethod.WriteToLog(string.Format("DateTime {0}, SendCallbacks3: channelCallbacks null", DateTime.Now.ToString()), LoggingMethod.LevelInfo);
            }
            #endif
        }