コード例 #1
0
        public override ClientNodeStatusWrapper GetClientNodeStatus(string cacheId)
        {
            string clientCacheId = string.Empty;

            ClientNodeStatus status = ClientConfigManager.GetClientNodeStatus(cacheId.ToLower(), out clientCacheId);

            if (status == ClientNodeStatus.ClientCacheUnavailable)
            {
                StatusInfo statusInfo = GetCacheStatus(clientCacheId.ToLower(), null);
                if (statusInfo.IsRunning)
                {
                    status = ClientNodeStatus.ClientCacheDisabled;
                }
            }
            else if (status == ClientNodeStatus.ClientCacheDisabled)
            {
                StatusInfo statusInfo = GetCacheStatus(clientCacheId.ToLower(), null);

                if (statusInfo.IsRunning)
                {
                    status = ClientNodeStatus.ClientCacheEnabled;
                }
                else if (statusInfo.IsUnavailable)
                {
                    status = ClientNodeStatus.ClientCacheUnavailable;
                }
            }
            return(new ClientNodeStatusWrapper(status));
        }
コード例 #2
0
        public override ClientNodeStatusWrapper GetClientNodeStatus(string cacheId)
        {
            string clientCacheId = string.Empty;

            ClientNodeStatus status = ClientConfigManager.GetClientNodeStatus(cacheId.ToLower(), out clientCacheId);

            return(new ClientNodeStatusWrapper(status));
        }