Hi,

I am trying to create a messaging infrastructure between several
applications. Having the following event:

public class XXXEvent : DomainEvent<XXXEvent>
    {
        public virtual string blabla{ get; set; }

        public override IEnumerable<object> BusinessIdentity
        {
            get { yield return blabla; }
        }

        public AddDomainEvent() : base() { }

        public AddDomainEvent(object objEvent)
            : base(objEvent)
        {
            var domainEvent = objEvent as AddDomainEvent;
            if (domainEvent != null)
            {
                PrimaryName = domainEvent.PrimaryName;
            }
        }
    }

when I try to send this event through Rhino-esb, it trips at line 59
in XmlMessageSerializer. The partial result is this:

<messages xmlns="http://servicebus.hibernatingrhinos.com/2008/12/20/
esb">
  <AddDomainEvent xmlns="ConsoleApplication1.XXXEvent,
ConsoleApplication1">
    <BusinessIdentity xmlns="ConsoleApplication1.XXXEvent
+&lt;get_BusinessIdentity&gt;d__0, ConsoleApplication1" />
    <EventId xmlns="System.Guid">00000000-0000-0000-0000-000000000000</
EventId>
    <Timestamp xmlns="System.DateTime">0001-01-01T00:00:00.0000000</
Timestamp>
  </AddDomainEvent>
</messages>

As you can see, BusinessIdentity seems odd.

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to