コード例 #1
0
 internal void InitializeServerMode()
 {
     IndexServerMode = (IndexServerMode)Enum.Parse(typeof(IndexServerMode), ModeString, true);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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);
 }