Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            bookingServiceClient = Utility.CreateNewBookingClient();
            ((ICommunicationObject)bookingServiceClient).Faulted += new EventHandler(BookingClient_Faulted);

            client = Utility.CreateNewCarLeasingServiceClient();
            ((ICommunicationObject)client).Faulted += new EventHandler(CarLeasingClient_Faulted);

            carClient = Utility.CreateNewCarServiceClient();
            ((ICommunicationObject)carClient).Faulted += new EventHandler(CarClient_Faulted);
        }
Exemplo n.º 2
0
 private void CarLeasingClient_Faulted(object sender, EventArgs e)
 {
     client = Utility.CreateNewCarLeasingServiceClient();
     ((ICommunicationObject)client).Faulted += new EventHandler(CarLeasingClient_Faulted);
 }