コード例 #1
0
        private (ServiceRestClient ServiceClient, ContainerRestClient ContainerClient) BuildRestClients(Uri serviceUri)
        {
            ServiceRestClient serviceRestClient = new ServiceRestClient(
                clientDiagnostics: _clientDiagnostics,
                pipeline: _pipeline,
                url: serviceUri.AbsoluteUri,
                version: _version.ToVersionString());

            ContainerRestClient containerRestClient = new ContainerRestClient(
                clientDiagnostics: _clientDiagnostics,
                pipeline: _pipeline,
                url: serviceUri.AbsoluteUri,
                version: _version.ToVersionString());

            return(serviceRestClient, containerRestClient);
        }
コード例 #2
0
        private (ServiceRestClient, ContainerRestClient) BuildRestClients()
        {
            BlobUriBuilder uriBuilder = new BlobUriBuilder(_uri);

            uriBuilder.BlobContainerName = null;
            uriBuilder.BlobName          = null;

            ServiceRestClient serviceRestClient = new ServiceRestClient(
                clientDiagnostics: _clientDiagnostics,
                pipeline: _pipeline,
                url: uriBuilder.ToUri().ToString(),
                version: _version.ToVersionString());

            ContainerRestClient containerRestClient = new ContainerRestClient(
                clientDiagnostics: _clientDiagnostics,
                pipeline: _pipeline,
                url: uriBuilder.ToUri().ToString(),
                version: _version.ToVersionString());

            return(serviceRestClient, containerRestClient);
        }