C# 클래스 Microsoft.WindowsAzure.Commands.Utilities.CloudService.CloudServiceProject

Class that encapsulates all of the info about a service, to which we can add roles. This is all in memory, so no disk operations occur.
파일 보기 프로젝트 열기: Azure/azure-powershell 1 사용 예제들

공개 메소드들

메소드 설명
AddRoleRuntime ( CloudProjectPathInfo paths, string roleName, string runtimeType, string runtimeVersion, string manifest = null ) : void

Add the specified runtime to a role, checking that the runtime and version are currently available int he cloud

AddWebRole ( string scaffolding, string name = null, int instanceCount = 1 ) : RoleInfo
AddWorkerRole ( string scaffolding, string name = null, int instanceCount = 1 ) : RoleInfo
ChangeRolePermissions ( RoleInfo role ) : void
ChangeServiceName ( string newName, CloudProjectPathInfo paths ) : void
CloudServiceProject ( ) : Common.System
CloudServiceProject ( string cloudConfigurationFullPath ) : Common.System
CloudServiceProject ( string rootPath, string scaffoldingPath ) : Common.System
CloudServiceProject ( string rootPath, string name, string scaffoldingPath ) : Common.System
GenerateScaffolding ( string scaffolding, string roleName, object>.Dictionary parameters ) : void

Generates scaffolding for role.

GetCloudRuntimes ( CloudProjectPathInfo paths, string manifest ) : CloudRuntimeCollection

Retrieve currently available cloud runtimes

Reload ( ) : void

Reloads the cloud service project configuration from the disk.

ResolveRuntimePackageUrls ( string manifest = null ) : string

Resolves the service runtimes into downloadable URLs.

SetRoleInstances ( CloudProjectPathInfo paths, string roleName, int instances ) : void

Sets the role instance count

SetRoleVMSize ( CloudProjectPathInfo paths, string roleName, string VMSize ) : void

Sets the role VMSize

StartEmulators ( bool launchBrowser, ComputeEmulatorMode mode, string &roleInformation, string &warning ) : void

Starts azure emulator for this service.

This methods removes all deployments already in the emulator.

StopEmulators ( string &warning ) : void

비공개 메소드들

메소드 설명
AddRoleCore ( string scaffolding, RoleInfo role ) : void

Adds the given role to both config files and the service def.

ConfigureNewService ( ServiceComponents components, CloudProjectPathInfo paths, string serviceName ) : void
CreateDefaultParameters ( RoleInfo role ) : object>.Dictionary
CreateNewService ( string serviceRootPath, string serviceName ) : void
CreatePackage ( DevEnv type ) : void
GetRoleName ( string name, string defaultName, IEnumerable existingNames ) : string

Creates a role name, ensuring it doesn't already exist. If null is passed in, a number will be appended to the defaultRoleName.

SetScaffolding ( string scaffoldingFolderDirectory ) : void
VerifyCloudServiceProjectComponents ( ) : void

메소드 상세

AddRoleRuntime() 공개 메소드

Add the specified runtime to a role, checking that the runtime and version are currently available int he cloud
public AddRoleRuntime ( CloudProjectPathInfo paths, string roleName, string runtimeType, string runtimeVersion, string manifest = null ) : void
paths CloudProjectPathInfo service path info
roleName string Name of the role to change
runtimeType string The runtime identifier
runtimeVersion string The runtime version
manifest string Location fo the manifest file, default is the cloud manifest
리턴 void

AddWebRole() 공개 메소드

public AddWebRole ( string scaffolding, string name = null, int instanceCount = 1 ) : RoleInfo
scaffolding string
name string
instanceCount int
리턴 RoleInfo

AddWorkerRole() 공개 메소드

public AddWorkerRole ( string scaffolding, string name = null, int instanceCount = 1 ) : RoleInfo
scaffolding string
name string
instanceCount int
리턴 RoleInfo

ChangeRolePermissions() 공개 메소드

public ChangeRolePermissions ( RoleInfo role ) : void
role RoleInfo
리턴 void

ChangeServiceName() 공개 메소드

public ChangeServiceName ( string newName, CloudProjectPathInfo paths ) : void
newName string
paths CloudProjectPathInfo
리턴 void

CloudServiceProject() 공개 메소드

public CloudServiceProject ( ) : Common.System
리턴 Common.System

CloudServiceProject() 공개 메소드

public CloudServiceProject ( string cloudConfigurationFullPath ) : Common.System
cloudConfigurationFullPath string
리턴 Common.System

CloudServiceProject() 공개 메소드

public CloudServiceProject ( string rootPath, string scaffoldingPath ) : Common.System
rootPath string
scaffoldingPath string
리턴 Common.System

CloudServiceProject() 공개 메소드

public CloudServiceProject ( string rootPath, string name, string scaffoldingPath ) : Common.System
rootPath string
name string
scaffoldingPath string
리턴 Common.System

GenerateScaffolding() 공개 메소드

Generates scaffolding for role.
public GenerateScaffolding ( string scaffolding, string roleName, object>.Dictionary parameters ) : void
scaffolding string The relative scaffolding source path
roleName string The role name
parameters object>.Dictionary The rule parameters
리턴 void

GetCloudRuntimes() 공개 메소드

Retrieve currently available cloud runtimes
public GetCloudRuntimes ( CloudProjectPathInfo paths, string manifest ) : CloudRuntimeCollection
paths CloudProjectPathInfo service path info
manifest string The manifest to use to get current runtime info - default is the cloud manifest
리턴 CloudRuntimeCollection

Reload() 공개 메소드

Reloads the cloud service project configuration from the disk.
public Reload ( ) : void
리턴 void

ResolveRuntimePackageUrls() 공개 메소드

Resolves the service runtimes into downloadable URLs.
public ResolveRuntimePackageUrls ( string manifest = null ) : string
manifest string The custom manifest file
리턴 string

SetRoleInstances() 공개 메소드

Sets the role instance count
public SetRoleInstances ( CloudProjectPathInfo paths, string roleName, int instances ) : void
paths CloudProjectPathInfo The service paths
roleName string The name of the role to change its instance count
instances int
리턴 void

SetRoleVMSize() 공개 메소드

Sets the role VMSize
public SetRoleVMSize ( CloudProjectPathInfo paths, string roleName, string VMSize ) : void
paths CloudProjectPathInfo The service paths
roleName string The name of the role to change its vm size
VMSize string The new role vm size
리턴 void

StartEmulators() 공개 메소드

Starts azure emulator for this service.
This methods removes all deployments already in the emulator.
public StartEmulators ( bool launchBrowser, ComputeEmulatorMode mode, string &roleInformation, string &warning ) : void
launchBrowser bool Switch to control opening a browser for web roles.
mode ComputeEmulatorMode
roleInformation string
warning string
리턴 void

StopEmulators() 공개 메소드

public StopEmulators ( string &warning ) : void
warning string
리턴 void