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); }
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); }
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); }
public void LogEntry(LogbookEntryService entry) { ErrorHandlerHelper.WriteToLogFile(entry.ToString(), LogType.Info); }