src/ServiceRuntime/RoleEnvironment.php
public static function requestRecycle()
    {
        self::_initialize();

        $recycleState = new AcquireCurrentState(
            self::$_clientId,
            self::$_currentGoalState->getIncarnation(),
            CurrentStatus::RECYCLE,
            self::$_maxDateTime
        );

        self::$_runtimeClient->setCurrentState($recycleState);
    }
public static function requestRecycle()
    {
        self::_initialize();

        $recycleState = new AcquireCurrentState(
            self::$_clientId,
            self::$_currentGoalState->getIncarnation(),
            CurrentStatus::RECYCLE,
            self::$_maxDateTime
        );

        self::$_runtimeClient->setCurrentState($recycleState);
    }
public static function requestRecycle ( ) { self :: _initialize ( ) ; $ recycleState = new AcquireCurrentState ( self :: $ _clientId , self :: $ _currentGoalState -> getIncarnation ( ) , CurrentStatus :: RECYCLE , self :: $ _maxDateTime ) ; self :: $ _runtimeClient -> setCurrentState ( $ recycleState ) ; }
Requests that the current role instance be stopped and restarted.
Before the role instance is recycled, the Windows Azure load balancer
takes the role instance out of rotation.

This ensures that no new requests are routed to the instance while it
is restarting.

@static
Requests that the current role instance be stopped and restarted . Before the role instance is recycled the Windows Azure load balancer takes the role instance out of rotation .