Source/NFX/Throttling/ThrottlingService.cs
/// <summary>
/// Register a throttle with this throttling container
/// </summary>
Register a throttle with this throttling container
Register a throttle with this throttling container
public void RegisterThrottle(Throttle throttle)
            {
                if (throttle == null)
                    throw new NFXException(StringConsts.ARGUMENT_ERROR + "RegisterThrottle(NULL)");
                lock (m_Throttles)
                {
                    if (!m_Throttles.TryAdd(throttle.Name, throttle))
                        throw new NFXException(StringConsts.ARGUMENT_ERROR + throttle.Name + " throttle already exists");
                    throttle.__setThrottling(this);
                }
            }
public void RegisterThrottle ( Throttle throttle ) { if ( throttle == null ) throw new NFXException ( StringConsts . ARGUMENT_ERROR + " " ) ; lock ( m_Throttles ) { if ( ! m_Throttles . TryAdd ( throttle . Name , throttle ) ) throw new NFXException ( StringConsts . ARGUMENT_ERROR + throttle . Name + " " ) ; throttle . __setThrottling ( this ) ; } }
Register a throttle with this throttling container
Register a throttle with this throttling container
throttle
Throttle