示例#1
0
        public ServiceStateInfo GetServiceState()
        {
            if (udpBinding) return LastServiceState;

            if (siteBinding)
            {
                LastServiceState.SetState(RequestToSiteState());
                return LastServiceState;
            }

            try
            {
                LastServiceState.SetState(proxy.GetModuleStatus().State);
                //LastServiceState = wrapper.GetServiceProcessState(););

                return LastServiceState;
            }
            catch (Exception ex)
            {
                LastServiceState = new ServiceStateInfo(ServiceProcessState.Offline, ex.Message, DateTime.Now);
                return LastServiceState;
            }
        }
示例#2
0
 public bool IsOfSameSeverity(ServiceStateInfo ssi)
 {
     return ssi.State == State;
 }
 public ModuleStatusProxy(string endpointName)
 {
     this.endpointName = endpointName;
     stateInfo = new ServiceStateInfo(ServiceProcessState.OK);
     RenewFactory();
 }
示例#4
0
 public bool IsOfSameSeverity(ServiceStateInfo ssi)
 {
     return(ssi.State == State);
 }