private void Display(DobEvent[] events, int indent)
        {
            if (events == null)
            {
                return;
            }
            foreach (DobEvent dobEvent in events)
            {
                if (dobEvent.carrierId != null)
                {
                    DisplayValue("Carrier id", dobEvent.carrierId, indent);
                    _session.LookupDobCarriersByCarrierId(dobEvent.carrierId, indent + 1);
                }

                EventTypes[] types = dobEvent.eventTypes;
                if (types != null)
                {
                    foreach (EventTypes eventType in types)
                    {
                        DisplayValue("Event Types", eventType, indent);
                    }
                }

                SignedContract[] signedContracts = dobEvent.signedContracts;
                if (signedContracts != null)
                {
                    foreach (SignedContract signedContract in signedContracts)
                    {
                        DisplayValue("Signed Contracts", signedContract, indent + 1);
                    }
                }
            }
        }
Пример #2
0
 private void Display(SignedCarrier signedCarrier, int indent)
 {
     DisplayValue("carrier id", signedCarrier.carrierId, indent);
     DisplayValue("endpointUrl", _session.EndpointUrl.AbsoluteUri, indent);
     _session.LookupDobCarriersByCarrierId(signedCarrier.carrierId, indent);
     if (signedCarrier.signedContracts != null)
     {
         foreach (SignedContract signedContract in signedCarrier.signedContracts)
         {
             Display(signedContract, indent);
         }
     }
 }