This project is read-only.
0
Vote

Change the WcfInputAdapter from a typed adapter to a generic adapter

description

Initially I had the adapter setup as a generic adapter since I essentially copied the information from the samples.  To get the WcfInputAdapter to work I had to change the adapter to a strongly typed adapter since I couldn't figure out how to make the values from the service to the generic pointevent.  Ran into type conversion problems since everything is determined at runtime.
 
I think I can solve this problem by changing the operation ocontract from;
 [OperationContract]
 string SubmitReading(string MeterId, double Value, DateTime Timestamp);
to
 [OperationContract]
 string SubmitReading(<TPayload> MeterReading);
 
This would make it a lot easier to change the event definition without having to change and retest a bunch of other classes.

comments