C# Class DeploymentTracker.Services.Tasks.CloudDeploymentTasks

Contains all cloud deployment tasks
Inheritance: IDisposable
Mostra file Open project: RyanTBerry/WindowsAzureDeploymentTracker

Public Methods

Method Description
AddCertificateToCloud ( string pfxPath, string password ) : void

Adds the certificate to cloud.

CloudDeploymentTasks ( CloudArgs cloudArgs ) : System

Initializes a new instance of the CloudDeploymentTasks class.

CopyCspkg ( string storagePrimaryKey ) : void

Copies the CSPKG.

DeployPackageInCloud ( ) : void

Deploys the package in cloud.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetStoragePrimaryKey ( ) : string

Gets the storage primary key.

InitHostedService ( ) : void

Inits the hosted service.

InitStorageAccount ( ) : string

Inits the storage account.

ListHostedServicesForSubscription ( string subscriptionId, X509Certificate2 certificate, string version ) : List

Lists the hosted services for subscriptions.

ListLocationsForSubscription ( string subscriptionId, X509Certificate2 certificate, string version ) : string>.Dictionary

Lists the locations for subscription.

ListStorageAccountsForSubscription ( string subscriptionId, X509Certificate2 certificate, string version ) : List

Lists the hosted services for subscriptions.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources The bulk of the clean-up code is implemented in Dispose(bool)

Private Methods

Method Description
AddCertificate ( string pfxPath, string password ) : string

Adds the certificate.

CreateHostedService ( ) : string

Creates the hosted service.

CreateStorageAccount ( ) : string

Creates the storage account.

DeployPackage ( ) : string

Deploys the package.

WaitForOperationCompletion ( string requestId ) : void

Waits for operation completion.

Method Details

AddCertificateToCloud() public method

Adds the certificate to cloud.
public AddCertificateToCloud ( string pfxPath, string password ) : void
pfxPath string The PFX path.
password string The password.
return void

CloudDeploymentTasks() public method

Initializes a new instance of the CloudDeploymentTasks class.
public CloudDeploymentTasks ( CloudArgs cloudArgs ) : System
cloudArgs DeploymentTracker.Services.Entities.CloudArgs The cloud args.
return System

CopyCspkg() public method

Copies the CSPKG.
public CopyCspkg ( string storagePrimaryKey ) : void
storagePrimaryKey string The storage primary key.
return void

DeployPackageInCloud() public method

Deploys the package in cloud.
public DeployPackageInCloud ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources The bulk of the clean-up code is implemented in Dispose(bool)
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

GetStoragePrimaryKey() public method

Gets the storage primary key.
public GetStoragePrimaryKey ( ) : string
return string

InitHostedService() public method

Inits the hosted service.
public InitHostedService ( ) : void
return void

InitStorageAccount() public method

Inits the storage account.
public InitStorageAccount ( ) : string
return string

ListHostedServicesForSubscription() public static method

Lists the hosted services for subscriptions.
public static ListHostedServicesForSubscription ( string subscriptionId, X509Certificate2 certificate, string version ) : List
subscriptionId string The subscription id.
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The certificate.
version string The version.
return List

ListLocationsForSubscription() public static method

Lists the locations for subscription.
public static ListLocationsForSubscription ( string subscriptionId, X509Certificate2 certificate, string version ) : string>.Dictionary
subscriptionId string The subscription id.
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The certificate.
version string The version.
return string>.Dictionary

ListStorageAccountsForSubscription() public static method

Lists the hosted services for subscriptions.
public static ListStorageAccountsForSubscription ( string subscriptionId, X509Certificate2 certificate, string version ) : List
subscriptionId string The subscription id.
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The certificate.
version string The version.
return List