Ejemplo n.º 1
0
        public static ProcessingMessage CreateProcessingMessage(ProcessingErrorCode code, Severity severity, ObjectType objectType, string objectName, string propertyName, ProcessingMessageList innerMessages, params string[] arguments)
        {
            objectName   = objectName.MarkAsPrivate();
            propertyName = propertyName.MarkAsPrivate();
            object[] messageArgs = ErrorContext.GetMessageArgs(objectType, objectName, propertyName, arguments);
            string   message     = string.Format(CultureInfo.CurrentCulture, RPRes.Keys.GetString(code.ToString()), messageArgs);

            return(new ProcessingMessage(code, severity, objectType, objectName, propertyName, message, innerMessages));
        }