BikeInCity.ViewModels.BikeCityViewModel.GetAllStations C# (CSharp) Метод

GetAllStations() публичный Метод

Calls the proxy client for a list of all bike stations.
public GetAllStations ( bool showWhenLoaded ) : void
showWhenLoaded bool
Результат void
        public void GetAllStations(bool showWhenLoaded)
        {
            _showAllWhenLoaded = showWhenLoaded;
            string url = String.Format(BikeConsts.STATIONS_URL_PATTERN, BikeConsts.baseUri, City.Id);
            _stationsRequest = (HttpWebRequest)HttpWebRequest.Create(new Uri(url, UriKind.Absolute));
            _stationsRequest.Method = "GET";
            _stationsRequest.BeginGetResponse(new AsyncCallback(EndGetAllStations), null);
        }