public EngineCustomStatus(EngineClient client) { if (client == null) { return; } if (client.IsAlive()) //engine is alive, get status { this.IsAlive = true; EngineStatus status = client.GetEngineStatus(); this.ConnectionCount = status.ConnectionCount; this.StartTime = status.StartTime; this.Version = status.Version; this.VMSize = status.VMSize; this.Host = client.Host; this.Name = client.Name; this.Port = client.Port; this.SRPC = GetSRPC(client); this.indexesStatus = client.GetIndexesStatus(); } }