dotnet / dotnet/wcf

Guidance on client-side intereception

Open
#4,545 1 comment 0 reactions 1 assignee Claimed by @mconnew View on GitHub
customer assistance
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

I'm trying to test a component based on `ChannelFactory` and I'm having difficulties on finding my way into the client pipeline so that I can return a value before hitting the wire.

I tried with a `IClientMessageInterceptor` but the only way to stop the communication is closing/aborting the passed channel factory.

Is there any other suggested approach?

Other than testing, this could be useful to create client-side caching (I couldn't find a way to achieve it either).

Some guidance would be appreciated.

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.