Ejemplo n.º 1
0
 /// <summary>
 /// Used to debug.
 /// </summary>
 public override string ToString()
 {
     lock (_transport)
     {
         return(String.Format(CultureInfo.InvariantCulture,
                              "{{{0}  Type: '{1}',{0}  HandshakeFields: {2},{0}  Advice: {3},{0}  Transport: {4},{0}  ClientId: '{5}',{0}  BackOff: {6}{0}}}",
                              Environment.NewLine, _type.ToString(), ObjectConverter.Serialize(_handshakeFields), ObjectConverter.Serialize(_advice),
                              _transport.ToString().Replace(Environment.NewLine, Environment.NewLine + "  "), _clientId, _backOff));
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Reset the subscriptions if this is not a failure from a requested handshake.
        /// Subscriptions may be queued after requested handshakes.
        /// </summary>
        public override void Enter(BayeuxClientStates oldState)
        {
            if ((oldState & BayeuxClientStates.Handshaking) == 0)
            {
                // DEBUG
                Trace.TraceInformation("Subscriptions will be cleaned when old-state '{0}' -enter-> ReHandshaking state", oldState.ToString());

                this.Session.ResetSubscriptions();
            }
        }
Ejemplo n.º 3
0
		/// <summary>
		/// Reset the subscriptions if this is not a failure from a requested handshake.
		/// Subscriptions may be queued after requested handshakes.
		/// </summary>
		public override void Enter(BayeuxClientStates oldState)
		{
			if ((oldState & BayeuxClientStates.Handshaking) == 0)
			{
				// DEBUG
				Trace.TraceInformation("Subscriptions will be cleaned when old-state '{0}' -enter-> ReHandshaking state", oldState.ToString());

				this.Session.ResetSubscriptions();
			}
		}