Channel sinks
-
Microsoft states: "Note: Sinks that need to create or modify the message itself must be placed in the sink chain prior to the formatter. This is easily achieved by implementing IClientFormatterSink, thereby fooling the system into believing that it has a reference to the formatter sink. The real formatter sink can then be placed later in the sink chain." But what is the name of the real formatter sink to put next in the sink chain? Thank you :)!
-
Microsoft states: "Note: Sinks that need to create or modify the message itself must be placed in the sink chain prior to the formatter. This is easily achieved by implementing IClientFormatterSink, thereby fooling the system into believing that it has a reference to the formatter sink. The real formatter sink can then be placed later in the sink chain." But what is the name of the real formatter sink to put next in the sink chain? Thank you :)!
I think that the name of the formatter sink to put next in the sink chain is IClientFormatterSink with the corresponding IClientFormatterSinkProvider. Another way to achieve this is to let the custom sink implement BaseChannelSinkWithProperties, IClientChannelSink, IMessageSink. Then you have a sink prior to the formatter sink.