Beispiel #1
0
 void IErrorHandler.ProvideFault(Exception error, MessageVersion version, ref Message fault)
 {
     try
     {
         ErrorHandlerHelper.PromoteException(_serviceType, error, version, ref fault);
     }
     catch (Exception ex)
     {
         _log.Error(ex);
     }
 }
 public void BeforeSendReply(ref Message reply, object correlationState)
 {
     ErrorHandlerHelper.WriteToLogFile("WCF:[Send]" + reply, LogType.Info);
 }
 public object AfterReceiveRequest(ref Message request, IClientChannel channel, InstanceContext instanceContext)
 {
     ErrorHandlerHelper.WriteToLogFile("WCF:[Recieve]" + request, LogType.Info);
     return(null);
 }
Beispiel #4
0
 public void ProvideFault(Exception error, MessageVersion version, ref Message fault)
 {
     ErrorHandlerHelper.PromoteException(error, version, ref fault);
 }
 bool IErrorHandler.HandleError(Exception error)
 {
     ErrorHandlerHelper.WriteToLogFile(error, LogType.Error);
     return(false);
 }
Beispiel #6
0
        public void BeforeSendReply(ref Message reply, object correlationState)
        {
            //reply.Headers.Add(MessageHeader.CreateHeader("Access-Control-Allow-Origin", "namespace", "*"));

            ErrorHandlerHelper.WriteToLogFile("WCF:[Send]" + reply, LogType.Info);
        }
Beispiel #7
0
 public void LogEntry(LogbookEntryService entry)
 {
     ErrorHandlerHelper.WriteToLogFile(entry.ToString(), LogType.Info);
 }