C# Class Elastacloud.AzureManagement.Fluent.Roles.RoleContextManager

Inheritance: IRoleOperation
ファイルを表示 Open project: azurecoder/fluent-management

Public Methods

Method Description
Dispose ( ) : void

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

GetInstanceCountForRole ( string roleName ) : int

Returns the instance count for the role being queried

Start ( ) : void

Used to start a deployment

Stop ( ) : void

Used to stop a deployment

UpdateInstanceCountForRole ( string roleName, int instanceCount ) : void

Used to update the number of instances for an existing role

Private Methods

Method Description
GetConfiguration ( string roleName ) : CscfgFile

Returns the configuration file for the particular role

RoleContextManager ( string subscriptionId, X509Certificate2 certificate, string serviceName, DeploymentSlot slot ) : System.Security.Cryptography.X509Certificates

Used to create a role context

Method Details

Dispose() public method

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

GetInstanceCountForRole() public method

Returns the instance count for the role being queried
public GetInstanceCountForRole ( string roleName ) : int
roleName string
return int

Start() public method

Used to start a deployment
public Start ( ) : void
return void

Stop() public method

Used to stop a deployment
public Stop ( ) : void
return void

UpdateInstanceCountForRole() public method

Used to update the number of instances for an existing role
public UpdateInstanceCountForRole ( string roleName, int instanceCount ) : void
roleName string The name of the role
instanceCount int the number of instances to increment or decrement to
return void