Method | Description | |
---|---|---|
AddRoleToConfiguration ( |
Adds the given role settings to the specified configuration file.
|
|
AddStartupTask ( string roleName, string commandLine, ExecutionContext context ) : void |
Adds new startup task to the given role.
|
|
ForEachRoleSettings ( bool>.Func |
Applied given action to all matching
|
|
GetCloudConfigRole ( string name ) : |
Gets the role if exists otherwise return null.
|
|
GetLocalConfigRole ( string name ) : |
Gets the role if exists otherwise return null.
|
|
GetNextPort ( ) : int |
Gets the next available port, starts from 80.
|
|
GetRoleStartup ( string roleName ) : |
Gets role startup.
|
|
GetRoles ( IEnumerable |
Gets all role settings that matches the given name.
|
|
GetRoles ( ) : IEnumerable |
Gets all existing role names.
|
|
GetStartupTask ( string roleName ) : |
Searches for a startup task that matches one of the given command lines for the specified role.
|
|
GetStartupTaskVariable ( string roleName, string name ) : string |
Gets startup task variable with the specified name.
|
|
GetWebRole ( string name ) : |
Gets the web role if exists otherwise return null.
|
|
GetWorkerRole ( string name ) : |
Gets the worker role if exists otherwise return null.
|
|
GetWorkerRoles ( Predicate |
Gets all worker roles that matches given predicate.
|
|
IsWebRole ( string roleName ) : bool |
Decides if the given role is web or worker role.
|
|
RoleExists ( string roleName ) : bool |
Determines if a specified role exists in service components (*.csdef, local and cloud *cscfg) or not.
|
|
Save ( |
||
ServiceComponents ( |
||
ServiceComponents ( string cloudConfiguration ) : System | ||
SetRoleInstances ( string roleName, int instances ) : void | ||
SetRoleVMSize ( string roleName, string vmSize ) : void |
Sets the VM size of a role
|
|
SetStartupTaskVariable ( string roleName, string name, string value ) : void |
Sets a startup task environment variable.
|
|
StartupTaskExists ( string roleName ) : bool |
Checks if a startup task exists with specified command line.
|
|
ValidRoleName ( string roleName ) : bool |
Validates if given role name is valid or not This method doesn't check if the role exists in service components or not. To check for role existence use RoleExists |
Method | Description | |
---|---|---|
LoadComponents ( |
public AddRoleToConfiguration ( |
||
role | The role settings instance | |
env | DevEnv | The environment |
return | void |
public AddStartupTask ( string roleName, string commandLine, ExecutionContext context ) : void | ||
roleName | string | The role name |
commandLine | string | The startup task command line |
context | ExecutionContext | The execution context |
return | void |
public ForEachRoleSettings ( bool>.Func |
||
predicate | bool>.Func | |
action | Action |
|
return | void |
public GetCloudConfigRole ( string name ) : |
||
name | string | The role name |
return |
public GetLocalConfigRole ( string name ) : |
||
name | string | The role name |
return |
public GetRoleStartup ( string roleName ) : |
||
roleName | string | The role name |
return |
public GetRoles ( IEnumerable |
||
roleNames | IEnumerable |
Role names collection |
return | IEnumerable |
public GetStartupTask ( string roleName ) : |
||
roleName | string | The role name |
return |
public GetStartupTaskVariable ( string roleName, string name ) : string | ||
roleName | string | The role name |
name | string | The variable name |
return | string |
public GetWebRole ( string name ) : |
||
name | string | The web role name |
return |
public GetWorkerRole ( string name ) : |
||
name | string | The worker role name |
return |
public GetWorkerRoles ( Predicate |
||
predicate | Predicate |
The matching predicate |
return | IEnumerable |
public IsWebRole ( string roleName ) : bool | ||
roleName | string | The role name |
return | bool |
public RoleExists ( string roleName ) : bool | ||
roleName | string | Role name |
return | bool |
public Save ( |
||
paths | ||
return | void |
public ServiceComponents ( |
||
paths | ||
return | System |
public ServiceComponents ( string cloudConfiguration ) : System | ||
cloudConfiguration | string | |
return | System |
public SetRoleInstances ( string roleName, int instances ) : void | ||
roleName | string | |
instances | int | |
return | void |
public SetRoleVMSize ( string roleName, string vmSize ) : void | ||
roleName | string | The role name |
vmSize | string | The VM size |
return | void |
public SetStartupTaskVariable ( string roleName, string name, string value ) : void | ||
roleName | string | The role name |
name | string | The environment variable name |
value | string | The environment variable value |
return | void |
public StartupTaskExists ( string roleName ) : bool | ||
roleName | string | The role name |
return | bool |
public static ValidRoleName ( string roleName ) : bool | ||
roleName | string | Role name to be checked |
return | bool |