When writing a custom channel how can I get the name of the service method that will be called.
For example, if the operation contract looks like the following, how can I know if Method1
or Method2
is being called?
[OperationContract]
void Method1( int data );
[OperationContract]
void Method2( int data );
The channel itself doesn't perform any major function on the Message, it just adds some extra data. What I am looking for is to customize the extra data added in the channel depending on the method being called (or more specifically if it is decorated with something).