Re: What is this diagram?
Howdy,
This seems to be a class diagram (made in paint *cries*). Where the point of focus lies, is the IProductMessage. The lines without arrows seem to be indicating a 'using'-relation where the lines with arrows would be 'implements/extends'-relations. So every class with arrows coming from it in this diagram, implement the IProductMessage interface. And for example the InputProductReportMessage extends the abstract ProductReportBase class.
I can't tell you how you will be able to use these classes from the diagram just by looking at it. I haven't worked with WCF yet, so I'm clueless here, but perhaps somebody else has.
Quote:
Originally Posted by
Techno
Also, for data coming in to the WCF contract, how would it be possible to determine the concrete type of class from the above, if we are getting the IProductMessage? I guess there would be some internal logic to determine based on the "ProductHeader" perhaps on what type of class it is?
To test for the given object's type or the type of one of it's ancestors you can use this:
Code:
if(msg is AlarmMessage)
Re: What is this diagram?
true, there is that way of doing it too...
thanks! it helped :)