Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 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;
 }