Skip to content

Instantly share code, notes, and snippets.

View martijnburgers's full-sized avatar

Martijn Burgers martijnburgers

View GitHub Profile
@danielmarbach
danielmarbach / ClientProxyInterceptor.cs
Created May 18, 2011 22:30
Client proxy interceptor for WCF and dynamic proxy
public class ClientProxyInterceptor : IInterceptor
{
private readonly Func<ICommunicationObject> proxyCreator;
private readonly Type typeToProxy;
private ICommunicationObject proxyInstance;
public ClientProxyInterceptor(Func<ICommunicationObject> proxyCreator, Type typeToProxy)
{
this.typeToProxy = typeToProxy;
this.proxyCreator = proxyCreator;