ProjectResourceExtensions Methods
Class Methods 2 members
Provides extension methods for
DistributedApplicationModel to work with ProjectResource instances. GetProjectMetadata(ProjectResource) Section titled GetProjectMetadata(ProjectResource) extension IProjectMetadata Gets the project metadata for the specified project resource.
public static class ProjectResourceExtensions{ public static IProjectMetadata GetProjectMetadata( this ProjectResource projectResource) { // ... }}Parameters
projectResource ProjectResource The project resource. Returns
IProjectMetadata The project metadata. Exceptions
InvalidOperationException Thrown when the project resource doesn't have project metadata. GetProjectResources(DistributedApplicationModel) Section titled GetProjectResources(DistributedApplicationModel) extension IEnumerable<ProjectResource> Returns all project resources in the distributed application model.
public static class ProjectResourceExtensions{ public static IEnumerable<ProjectResource> GetProjectResources( this DistributedApplicationModel model) { // ... }}Parameters
model DistributedApplicationModel The distributed application model. Returns
IEnumerable<ProjectResource> An enumerable collection of project resources.