Source/NFX/Throttling/ThrottlingService.cs
/// <summary>
/// Unregister a throttle from this throttling container
/// </summary>
/// <returns>True if throttle was successfully unregistered</returns>
Unregister a throttle from this throttling container
Unregister a throttle from this throttling container
public bool UnregisterThrottle(Throttle throttle)
            {
                if (throttle == null)
                    throw new NFXException(StringConsts.ARGUMENT_ERROR + "UnregisterThrottle(NULL)");
                Throttle value;
                lock (m_Throttles)
                {
                    bool ok = m_Throttles.TryRemove(throttle.Name, out value);
                    if (ok)
                        throttle.__setThrottling(null);
                    return ok;
                }
            }
public bool UnregisterThrottle ( Throttle throttle ) { if ( throttle == null ) throw new NFXException ( StringConsts . ARGUMENT_ERROR + " " ) ; Throttle value ; lock ( m_Throttles ) { bool ok = m_Throttles . TryRemove ( throttle . Name , out value ) ; if ( ok ) throttle . __setThrottling ( null ) ; return ok ; } }
Unregister a throttle from this throttling container
Unregister a throttle from this throttling container
True if throttle was successfully unregistered
True if throttle was successfully unregistered
throttle
Throttle