示例#1
0
 /// <summary>
 /// This state can be updated to <see cref="BayeuxClientStates.Connecting"/>,
 /// or <see cref="BayeuxClientStates.ReHandshaking"/>, or <see cref="BayeuxClientStates.Disconnected"/> state only.
 /// </summary>
 public override bool IsUpdateableTo(BayeuxClientState newState)
 {
     return(newState != null &&
            (newState.Type & (BayeuxClientStates.Connecting
                              | BayeuxClientStates.ReHandshaking
                              | BayeuxClientStates.Disconnected)) > 0);
 }
示例#2
0
 /// <summary>
 /// This state can be updated to <see cref="BayeuxClientStates.Disconnected"/> state only.
 /// </summary>
 public override bool IsUpdateableTo(BayeuxClientState newState)
 {
     return(newState != null &&
            (newState.Type & BayeuxClientStates.Disconnected) > 0);
 }
示例#3
0
 /// <summary>
 /// This state can be updated to <see cref="BayeuxClientStates.Handshaking"/> state only.
 /// </summary>
 public override bool IsUpdateableTo(BayeuxClientState newState)
 {
     return(newState != null &&
            (newState.Type & BayeuxClientStates.Handshaking) > 0);
 }
示例#4
0
 /// <summary>
 /// Checks if this client session state can be updated to the specified new state.
 /// </summary>
 public abstract bool IsUpdateableTo(BayeuxClientState newState);
示例#5
0
		/// <summary>
		/// This state can be updated to <see cref="BayeuxClientStates.Disconnected"/> state only.
		/// </summary>
		public override bool IsUpdateableTo(BayeuxClientState newState)
		{
			return (newState != null
				&& (newState.Type & BayeuxClientStates.Disconnected) > 0);
		}
示例#6
0
		/// <summary>
		/// This state can be updated to <see cref="BayeuxClientStates.Connected"/>,
		/// or <see cref="BayeuxClientStates.Unconnected"/>, or <see cref="BayeuxClientStates.ReHandshaking"/>,
		/// or <see cref="BayeuxClientStates.Disconnected"/> state only.
		/// </summary>
		public override bool IsUpdateableTo(BayeuxClientState newState)
		{
			return (newState != null
				&& (newState.Type & (BayeuxClientStates.Connected
					| BayeuxClientStates.Unconnected
					| BayeuxClientStates.ReHandshaking
					| BayeuxClientStates.Disconnected)) > 0);
		}
示例#7
0
		/// <summary>
		/// This state can be updated to <see cref="BayeuxClientStates.Handshaking"/> state only.
		/// </summary>
		public override bool IsUpdateableTo(BayeuxClientState newState)
		{
			return (newState != null
				&& (newState.Type & BayeuxClientStates.Handshaking) > 0);
		}
示例#8
0
		/// <summary>
		/// Checks if this client session state can be updated to the specified new state.
		/// </summary>
		public abstract bool IsUpdateableTo(BayeuxClientState newState);