Example #1
0
        override public void RetrieveCustomerInfo()
        {
            if (!_isExistingCustomer)
            {
                throw new Exception("Retrieve Customer Info may only be called for an existing customer");
            }

            // as we do not expect errors, no try/catch
            CustomerInformation customerInfo;

            //_clientContextObj.DeleteContext("CONNTYPE", ref _contextArray);
            _clientContextObj.ConnectionUsage = ConnectionTypes.NonPersistent;
            customerInfo = _Handler.GetCustomerInfo(_name, ref _clientContextObj);

            _pin   = customerInfo.CUSTOMER_ACCESS_PIN;
            SSN    = customerInfo.CUSTOMER_SSN;
            Street = customerInfo.CUSTOMER_STREET;
            City   = customerInfo.CUSTOMER_CITY;
            State  = customerInfo.CUSTOMER_STATE;
            ZIP    = customerInfo.CUSTOMER_ZIP.ToString();
            Phone  = customerInfo.CUSTOMER_PHONE;
        }