Exemplo n.º 1
0
		void IErrorHandler.ProvideFault(Exception error, MessageVersion version, ref Message fault)
		{
			Faulted = true;

			var faultException = error as FaultException;

			if (faultException == null)
			{
				var data = new UnhandledErrorFault(error, error.Message, error.StackTrace);
				faultException = new FaultException<UnhandledErrorFault>(data);
			}

			var messageFault = faultException.CreateMessageFault();
			fault = Message.CreateMessage(version, messageFault, faultException.Action);
		}
Exemplo n.º 2
0
        void IErrorHandler.ProvideFault(Exception error, MessageVersion version, ref Message fault)
        {
            Faulted = true;

            var faultException = error as FaultException;

            if (faultException == null)
            {
                var data = new UnhandledErrorFault(error, error.Message, error.StackTrace);
                faultException = new FaultException <UnhandledErrorFault>(data);
            }

            var messageFault = faultException.CreateMessageFault();

            fault = Message.CreateMessage(version, messageFault, faultException.Action);
        }