static void FireMultiplexException <T>(bool resumeOnReconnect, RequestState <T> requestState) { #if (ENABLE_PUBNUB_LOGGING) LoggingMethod.WriteToLog(string.Format("DateTime {0}, UrlRequestCommonExceptionHandler for Subscribe/Presence", DateTime.Now.ToString()), LoggingMethod.LevelInfo); #endif MultiplexExceptionEventArgs <T> mea = new MultiplexExceptionEventArgs <T>(); mea.channelEntities = requestState.ChannelEntities; mea.resumeOnReconnect = resumeOnReconnect; mea.reconnectMaxTried = false; mea.responseType = requestState.RespType; multiplexException.Raise(typeof(ExceptionHandlers), mea); }
static void FireMultiplexException <T>(ResponseType respType, string[] channels, Action <T> userCallback, Action <T> connectCallback, Action <PubnubClientError> errorCallback, bool resumeOnReconnect) { #if (ENABLE_PUBNUB_LOGGING) LoggingMethod.WriteToLog(string.Format("DateTime {0}, UrlRequestCommonExceptionHandler for Subscribe/Presence", DateTime.Now.ToString()), LoggingMethod.LevelInfo); #endif MultiplexExceptionEventArgs <T> mea = new MultiplexExceptionEventArgs <T>(); mea.channels = channels; mea.connectCallback = connectCallback; mea.errorCallback = errorCallback; mea.resumeOnReconnect = resumeOnReconnect; mea.reconnectMaxTried = false; mea.responseType = respType; mea.userCallback = userCallback; multiplexException.Raise(typeof(ExceptionHandlers), mea); }