internal TearOffProxy(ICreateServiceChannel serviceChannelCreator, Type proxiedType) : base(proxiedType) { if (serviceChannelCreator == null) { throw Fx.AssertAndThrow("ServiceChannelCreator cannot be null"); } this.serviceChannelCreator = serviceChannelCreator; this.baseTypeToInterfaceMethod = new Dictionary <MethodBase, MethodBase>(); }
internal TearOffProxy(ICreateServiceChannel serviceChannelCreator, Type proxiedType) : base(proxiedType) { if (serviceChannelCreator == null) { throw Fx.AssertAndThrow("ServiceChannelCreator cannot be null"); } this.serviceChannelCreator = serviceChannelCreator; this.baseTypeToInterfaceMethod = new Dictionary<MethodBase, MethodBase>(); }
void IDisposable.Dispose() { this.serviceChannelCreator = null; }