internal void InitializeServerMode() { IndexServerMode = (IndexServerMode)Enum.Parse(typeof(IndexServerMode), ModeString, true); }
/// <summary> /// Determines whether messages are needed to be forwarded to data tier. /// </summary> /// <param name="relayTTL">The relay TTL.</param> /// <param name="sourceZone">The source zone.</param> /// <param name="serverZone">The server zone.</param> /// <param name="serverMode">The server mode.</param> /// <returns></returns> internal static bool ShouldForwardToDataTier(short relayTTL, ushort sourceZone, ushort serverZone, IndexServerMode serverMode) { return(relayTTL > 0 && sourceZone == serverZone && serverMode == IndexServerMode.Databound); }
/// <summary> /// Determines whether messages are needed to be forwarded to data tier. /// </summary> /// <param name="relayTTL">The relay TTL.</param> /// <param name="sourceZone">The source zone.</param> /// <param name="serverZone">The server zone.</param> /// <param name="serverMode">The server mode.</param> /// <returns></returns> internal static bool ShouldForwardToDataTier(short relayTTL, ushort sourceZone, ushort serverZone, IndexServerMode serverMode) { return (relayTTL > 0 && sourceZone == serverZone && serverMode == IndexServerMode.Databound); }