Skip to content

Instantly share code, notes, and snippets.

@RobinHerbots
RobinHerbots / ProxyBase.cs
Created October 24, 2011 12:28
Simple WCF Proxybase with a static ChannelFactory
using System;
using System.ServiceModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
namespace ServiceProxies
{
public class ProxyBase<TChannel> : IDisposable where TChannel : class
@RobinHerbots
RobinHerbots / ProxyBase.cs
Last active October 11, 2023 20:25
WCF ProxyBase with channel reuse
using System;
using System.Runtime.Serialization;
using System.Collections.Generic;
using System.Diagnostics;
using System.ServiceModel;
using System.Threading;
using System.Reflection;
namespace ServiceProxies
{