internal static WorkerRole GetWorkerRole(string rootPath, string name) { CloudServiceProject service = new CloudServiceProject(rootPath, FileUtilities.GetContentFilePath("Services")); return service.Components.GetWorkerRole(name); }