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; } }
public bool IsOfSameSeverity(ServiceStateInfo ssi) { return ssi.State == State; }
public ModuleStatusProxy(string endpointName) { this.endpointName = endpointName; stateInfo = new ServiceStateInfo(ServiceProcessState.OK); RenewFactory(); }
public bool IsOfSameSeverity(ServiceStateInfo ssi) { return(ssi.State == State); }