Elastacloud.AzureManagement.Fluent.Clients.BlobClient.CreateAndUploadBlob C# (CSharp) Méthode

CreateAndUploadBlob() public méthode

Creates an uploads a blob given a file path
public CreateAndUploadBlob ( string blobName, string filenamePath ) : string
blobName string the name of the blob to create
filenamePath string The name of the file to read an copy to blob storage
Résultat string
        public string CreateAndUploadBlob(string blobName, string filenamePath)
        {
            LoadKeyIfNotExists();
            var blobCommand = new CreateAndUploadBlobCommand(ContainerName, blobName, filenamePath)
            {
                AccountKey = AccountKey,
                AccountName = AccountName
            };
            blobCommand.Execute();
            return blobCommand.DeploymentPath;
        }