Esempio n. 1
0
        private void GoGetAll(HttpListenerContext context)
        {
            var all = _endpointDb.Fetch();

            if (context.Request.HttpMethod.Equals("GET"))
            {
                utils.SerializeToJson(all, context);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Get a listing of all of stubby's configured endpoints
 /// </summary>
 public IList <Endpoint> GetAll()
 {
     return(_endpointDb.Fetch());
 }