コード例 #1
0
 /**
  * Initializes new ServiceManagementRestProxy object.
  * 
  * @param IHttpClient $channel        The HTTP channel.
  * @param string      $subscriptionId The user subscription id.
  * @param string      $uri            The service URI.
  * @param ISerializer $dataSerializer The data serializer.
  */
 public function __construct($channel, $subscriptionId, $uri, $dataSerializer)
 {
     parent::__construct($channel, $dataSerializer, $uri);
     $this->_subscriptionId = $subscriptionId;
 }
コード例 #2
0
 /**
  * Sends HTTP request with the specified HTTP call context.
  * 
  * @param WindowsAzure\Common\Internal\Http\HttpCallContext $context The HTTP 
  * call context.
  * 
  * @return \HTTP_Request2_Response
  */
 protected function sendContext($context)
 {
     $context->setUri($this->getUri());
     return parent::sendContext($context);
 }