//internal void ReleasePerformanceCounters() //{ // if (PerformanceCounters.PerformanceCountersEnabled) // { // PerformanceCounters.ReleasePerformanceCountersForEndpoint(this.perfCounterId, this.perfCounterBaseId); // } //} //internal bool SetPerfCounterId() //{ // Uri keyUri = null; // if (null != this.ListenUri) // { // keyUri = this.ListenUri; // } // else // { // EndpointAddress endpointAddress = this.EndpointAddress; // if (null != endpointAddress) // { // keyUri = endpointAddress.Uri; // } // } // if (null != keyUri) // { // this.perfCounterBaseId = keyUri.AbsoluteUri.ToUpperInvariant(); // this.perfCounterId = this.perfCounterBaseId + "/" + contractName.ToUpperInvariant(); // return true; // } // else // { // return false; // } //} private void ThrowIfDisposedOrImmutable() { ChannelDispatcher channelDispatcher = ChannelDispatcher; if (channelDispatcher != null) { channelDispatcher.ThrowIfDisposedOrImmutable(); } }
protected override void ClearItems() { _outer.ThrowIfDisposedOrImmutable(); base.ClearItems(); }