Example #1
0
        internal static ServiceTopology GetCurrentLegacyServiceTopology(TimeSpan getServiceTopologyTimeout)
        {
            ServiceTopology currentServiceTopology = ServiceCache.GetCurrentServiceTopology(getServiceTopologyTimeout);
            ServiceTopology serviceTopology        = ServiceCache.Instance.legacyServiceTopologyInstance;

            if (serviceTopology == null)
            {
                serviceTopology = currentServiceTopology.ToLegacyServiceTopology("f:\\15.00.1497\\sources\\dev\\data\\src\\storage\\ServiceDiscovery\\ServiceCache.cs", "GetCurrentLegacyServiceTopology", 144);
                ServiceCache.Instance.legacyServiceTopologyInstance = serviceTopology;
            }
            return(serviceTopology);
        }
Example #2
0
 internal static ServiceTopology GetCurrentServiceTopology()
 {
     return(ServiceCache.GetCurrentServiceTopology(ServiceDiscovery.ExchangeTopologyBridge.GetServiceTopologyDefaultTimeout));
 }
Example #3
0
 public static ServiceTopology GetCurrentServiceTopology(TimeSpan getServiceTopologyTimeout, [CallerFilePath] string callerFilePath = null, [CallerMemberName] string memberName = null, [CallerLineNumber] int callerFileLine = 0)
 {
     ServiceTopologyLog.Instance.Append(callerFilePath, memberName, callerFileLine);
     return(ServiceCache.GetCurrentServiceTopology(getServiceTopologyTimeout));
 }