开发者

List value is missing while receiving a messgae in NServiceBus

开发者 https://www.devze.com 2023-02-01 10:04 出处:网络
My message object has a list and some properties. Say List MyList. I send th开发者_JAVA技巧is message to a queue. NSBHandler receives this message. But MyList is missing in that received message. All

My message object has a list and some properties. Say List MyList. I send th开发者_JAVA技巧is message to a queue. NSBHandler receives this message. But MyList is missing in that received message. All other properties exist.

Can anyone help me to resolve this issue?

Thanks in advance.

Regin Thangaraj


If you've used an auto property and you've done it like this:

public List<Stuff> MyListOfStuff { get; private set; }

Then NServiceBus will skip it on serialization as it knows that on deserilization it will won't be able to set the property with the private setter..

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号