Microsoft.WindowsAzure.Commands.Test.Utilities.Common.AzureAssert.GetCloudRole C# (CSharp) Method

GetCloudRole() static private method

Gets the role settings object from cloud service configuration.
static private GetCloudRole ( string rootPath, string name ) : RoleSettings
rootPath string The azure service rootPath path
name string
return RoleSettings
        internal static RoleSettings GetCloudRole(string rootPath, string name)
        {
            CloudServiceProject service = new CloudServiceProject(rootPath, FileUtilities.GetContentFilePath("Services"));
            return service.Components.GetCloudConfigRole(name);
        }