Microsoft.WindowsAzure.Commands.Test.Utilities.Common.AzureAssert.GetWebRole C# (CSharp) Méthode

GetWebRole() static private méthode

Gets web role object from service definition.
static private GetWebRole ( string rootPath, string name ) : WebRole
rootPath string The azure service rootPath path
name string
Résultat WebRole
        internal static WebRole GetWebRole(string rootPath, string name)
        {
            CloudServiceProject service = new CloudServiceProject(rootPath, FileUtilities.GetContentFilePath("Services"));
            return service.Components.GetWebRole(name);
        }