# PipelineConfigurationContext Methods

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [PipelineConfigurationContext](/reference/api/csharp/aspire.hosting/pipelineconfigurationcontext.md)
- Kind: `Methods`
- Members: `3`

Provides contextual information for pipeline configuration callbacks.

## GetSteps(string)

- Name: `GetSteps(string)`
- Returns: [IEnumerable<PipelineStep>](/reference/api/csharp/aspire.hosting/pipelinestep.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/PipelineConfigurationContext.cs#L71-L72)

Gets all pipeline steps with the specified tag.

```csharp
public class PipelineConfigurationContext
{
    public IEnumerable<PipelineStep> GetSteps(
        string tag)
    {
        // ...
    }
}
```

## Parameters

- `tag` (`string`)
  The tag to search for.

## Returns

[IEnumerable<PipelineStep>](/reference/api/csharp/aspire.hosting/pipelinestep.md) -- A collection of steps that have the specified tag.

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.

## GetSteps(IResource)

- Name: `GetSteps(IResource)`
- Returns: [IEnumerable<PipelineStep>](/reference/api/csharp/aspire.hosting/pipelinestep.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/PipelineConfigurationContext.cs#L84-L86)

Gets all pipeline steps associated with the specified resource.

```csharp
public class PipelineConfigurationContext
{
    public IEnumerable<PipelineStep> GetSteps(
        IResource resource)
    {
        // ...
    }
}
```

## Parameters

- `resource` ([IResource](/reference/api/csharp/aspire.hosting/iresource.md))
  The resource to search for.

## Returns

[IEnumerable<PipelineStep>](/reference/api/csharp/aspire.hosting/pipelinestep.md) -- A collection of steps associated with the resource.

## Remarks

This overload is not available in polyglot app hosts. Use [PipelineConfigurationContext.Pipeline](/reference/api/csharp/aspire.hosting/pipelineconfigurationcontext/properties.md) instead.

## ATS metadata

### Ignored by ATS

- Reason: IResource parameters on callback context methods are not ATS-compatible. Use pipeline helpers instead.

## GetSteps(IResource, string)

- Name: `GetSteps(IResource, string)`
- Returns: [IEnumerable<PipelineStep>](/reference/api/csharp/aspire.hosting/pipelinestep.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/PipelineConfigurationContext.cs#L99-L101)

Gets all pipeline steps with the specified tag that are associated with the specified resource.

```csharp
public class PipelineConfigurationContext
{
    public IEnumerable<PipelineStep> GetSteps(
        IResource resource,
        string tag)
    {
        // ...
    }
}
```

## Parameters

- `resource` ([IResource](/reference/api/csharp/aspire.hosting/iresource.md))
  The resource to search for.
- `tag` (`string`)
  The tag to search for.

## Returns

[IEnumerable<PipelineStep>](/reference/api/csharp/aspire.hosting/pipelinestep.md) -- A collection of steps that have the specified tag and are associated with the resource.

## Remarks

This overload is not available in polyglot app hosts. Use [PipelineConfigurationContext.Pipeline](/reference/api/csharp/aspire.hosting/pipelineconfigurationcontext/properties.md) instead.

## ATS metadata

### Ignored by ATS

- Reason: IResource parameters on callback context methods are not ATS-compatible. Use pipeline helpers instead.
