public Message CreateRejectionResponse(RejectionTypes type, string info) { var response = CreateResponseMessage(); response.Result = ResponseTypes.Rejection; response.RejectionType = type; response.RejectionInfo = info; if (logger.IsVerbose) { logger.Verbose("Creating {0} rejection with info '{1}' for {2} at:" + Environment.NewLine + "{3}", type, info, this, new System.Diagnostics.StackTrace(true)); } return(response); }
public Message CreateRejectionMessage(RejectionTypes rejectionType) { var message = new Message(); message.Guid = Guid; message.TargetSlio = SendingSlio; message.TargetId = SendingId; message.SendingSlio = TargetSlio; message.SendingId = TargetId; message.Direction = Directions.Response; message.Result = ResponseTypes.Rejection; message.RejectionType = rejectionType; return(message); }
public Message CreateRejectionResponse(RejectionTypes type, string info, OrleansException ex = null) { var response = CreateResponseMessage(); response.Result = ResponseTypes.Rejection; response.RejectionType = type; response.RejectionInfo = info; response.BodyObject = ex; if (logger.IsVerbose) { logger.Verbose("Creating {0} rejection with info '{1}' for {2} at:" + Environment.NewLine + "{3}", type, info, this, Utils.GetStackTrace()); } return(response); }
public Message CreateRejectionResponse(RejectionTypes type, string info, OrleansException ex = null) { var response = CreateResponseMessage(); response.Result = ResponseTypes.Rejection; response.RejectionType = type; response.RejectionInfo = info; response.BodyObject = ex; if (logger.IsVerbose) logger.Verbose("Creating {0} rejection with info '{1}' for {2} at:" + Environment.NewLine + "{3}", type, info, this, Utils.GetStackTrace()); return response; }