src/ServiceBus/ServiceBusRestProxy.php
public function unlockMessage(BrokeredMessage $brokeredMessage)
    {
        $httpCallContext = new HttpCallContext();
        $httpCallContext->setMethod(Resources::HTTP_PUT);
        $lockLocation = $brokeredMessage->getLockLocation();
        $lockLocationArray = parse_url($lockLocation);
        $lockLocationPath = Resources::EMPTY_STRING;

        if (array_key_exists(Resources::PHP_URL_PATH, $lockLocationArray)) {
            $lockLocationPath = $lockLocationArray[Resources::PHP_URL_PATH];
            $lockLocationPath = preg_replace(
                '@^\/@',
                Resources::EMPTY_STRING,
                $lockLocationPath
            );
        }

        $httpCallContext->setPath($lockLocationPath);
        $httpCallContext->addStatusCode(Resources::STATUS_OK);
        $this->sendHttpContext($httpCallContext);
    }
public function unlockMessage(BrokeredMessage $brokeredMessage)
    {
        $httpCallContext = new HttpCallContext();
        $httpCallContext->setMethod(Resources::HTTP_PUT);
        $lockLocation = $brokeredMessage->getLockLocation();
        $lockLocationArray = parse_url($lockLocation);
        $lockLocationPath = Resources::EMPTY_STRING;

        if (array_key_exists(Resources::PHP_URL_PATH, $lockLocationArray)) {
            $lockLocationPath = $lockLocationArray[Resources::PHP_URL_PATH];
            $lockLocationPath = preg_replace(
                '@^\/@',
                Resources::EMPTY_STRING,
                $lockLocationPath
            );
        }

        $httpCallContext->setPath($lockLocationPath);
        $httpCallContext->addStatusCode(Resources::STATUS_OK);
        $this->sendHttpContext($httpCallContext);
    }
public function unlockMessage ( BrokeredMessage $ brokeredMessage ) { $ httpCallContext = new HttpCallContext ( ) ; $ httpCallContext -> setMethod ( Resources :: HTTP_PUT ) ; $ lockLocation = $ brokeredMessage -> getLockLocation ( ) ; $ lockLocationArray = parse_url ( $ lockLocation ) ; $ lockLocationPath = Resources :: EMPTY_STRING ; if ( array_key_exists ( Resources :: PHP_URL_PATH , $ lockLocationArray ) ) { $ lockLocationPath = $ lockLocationArray [ Resources :: PHP_URL_PATH ] ; $ lockLocationPath = preg_replace ( '@^\/@' , Resources :: EMPTY_STRING , $ lockLocationPath ) ; } $ httpCallContext -> setPath ( $ lockLocationPath ) ; $ httpCallContext -> addStatusCode ( Resources :: STATUS_OK ) ; $ this -> sendHttpContext ( $ httpCallContext ) ; }
Unlocks a brokered message.

Queues:

@link http://msdn.microsoft.com/en-us/library/windowsazure/hh780723

Topic Subscriptions:
@link http://msdn.microsoft.com/en-us/library/windowsazure/hh780737

@param BrokeredMessage $brokeredMessage The brokered message
Unlocks a brokered message .