internal void Recycle() { _requestContext = null; _request = null; _extensions = null; _instanceContext = null; this.threadPrincipal = null; this.SetClientReply(null, false); }
protected ServiceHostBase() { TraceUtility.SetEtwProviderId(); this.baseAddresses = new UriSchemeKeyedCollection(base.ThisLock); this.channelDispatchers = new ChannelDispatcherCollection(this, base.ThisLock); this.extensions = new ExtensionCollection <ServiceHostBase>(this, base.ThisLock); this.instances = new InstanceContextManager(base.ThisLock); this.serviceThrottle = new System.ServiceModel.Dispatcher.ServiceThrottle(this); base.TraceOpenAndClose = true; base.Faulted += new EventHandler(this.OnServiceHostFaulted); }