C# Class Microsoft.WindowsAzure.Commands.Utilities.Common.CommonUtilities

Show file Open project: Azure/azure-powershell

Public Methods

Method Description
GetDefaultSettings ( string rootPath, string inServiceName, string slot, string location, string affinityGroup, string storageName, string subscription, string &serviceName ) : ServiceSettings
GetRoleName ( string rootPath, string currentPath ) : string

Gets role name for the current pathif exists.

GetServiceRootPath ( string currentPath ) : string
TryGetServiceRootPath ( string currentPath ) : string

Tries to get service path, if not return null.

Private Methods

Method Description
FindServiceRootDirectory ( string path ) : string

Method Details

GetDefaultSettings() public static method

public static GetDefaultSettings ( string rootPath, string inServiceName, string slot, string location, string affinityGroup, string storageName, string subscription, string &serviceName ) : ServiceSettings
rootPath string
inServiceName string
slot string
location string
affinityGroup string
storageName string
subscription string
serviceName string
return Microsoft.WindowsAzure.Commands.Utilities.CloudService.ServiceSettings

GetRoleName() public static method

Gets role name for the current pathif exists.
public static GetRoleName ( string rootPath, string currentPath ) : string
rootPath string
currentPath string
return string

GetServiceRootPath() public static method

public static GetServiceRootPath ( string currentPath ) : string
currentPath string
return string

TryGetServiceRootPath() public static method

Tries to get service path, if not return null.
public static TryGetServiceRootPath ( string currentPath ) : string
currentPath string The current path
return string