private void GoGetAll(HttpListenerContext context) { var all = _endpointDb.Fetch(); if (context.Request.HttpMethod.Equals("GET")) { utils.SerializeToJson(all, context); } }
/// <summary> /// Get a listing of all of stubby's configured endpoints /// </summary> public IList <Endpoint> GetAll() { return(_endpointDb.Fetch()); }