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

GetWorkerRole() static private method

Gets worker role object from service definition.
static private GetWorkerRole ( string rootPath, string name ) : WorkerRole
rootPath string The azure service rootPath path
name string
return WorkerRole
        internal static WorkerRole GetWorkerRole(string rootPath, string name)
        {
            CloudServiceProject service = new CloudServiceProject(rootPath, FileUtilities.GetContentFilePath("Services"));
            return service.Components.GetWorkerRole(name);
        }