Ejemplo n.º 1
0
 public bool PublishStringToBlob(string container, string blob, string contents, string contentType = null)
 {
     return(PublishStringToAzureBlob.Execute(AccountName,
                                             AccountKey,
                                             ConnectionString,
                                             container,
                                             blob,
                                             contents,
                                             contentType,
                                             BuildEngine,
                                             HostObject));
 }
Ejemplo n.º 2
0
        public static bool Execute(string accountName,
                                   string accountKey,
                                   string connectionString,
                                   string containerName,
                                   string blobName,
                                   string content,
                                   string contentType,
                                   IBuildEngine buildengine,
                                   ITaskHost taskHost)
        {
            PublishStringToAzureBlob publishStringToBlob = new PublishStringToAzureBlob()
            {
                AccountName   = accountName,
                AccountKey    = accountKey,
                ContainerName = containerName,
                BlobName      = blobName,
                Content       = content,
                ContentType   = contentType,
                BuildEngine   = buildengine,
                HostObject    = taskHost
            };

            return(publishStringToBlob.Execute());
        }