コード例 #1
0
        public AreaAddress GetAreaAddress(string area_code)
        {
            try
            {
                NameValueCollection nameValues = new NameValueCollection();
                nameValues.Add(ParameterNames.AreaCode, area_code);

                var parameters = new AreaAddressParameters(nameValues);
                return new JsonBuilderAreaAddress(parameters).GetAreaAddress();
            }
            catch (Exception ex)
            {
                Log(ex);
                throw;
            }
        }
コード例 #2
0
 public JsonBuilderAreaAddress(AreaAddressParameters parameters)
 {
     _parameters = parameters;
     Parameters = _parameters;
 }
コード例 #3
0
 public JsonBuilderAreaAddress(HttpContextBase context)
     : base(context)
 {
     _parameters = new AreaAddressParameters(context.Request.Params);
     Parameters = _parameters;
 }