# PipelineStepFactoryContext Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [PipelineStepFactoryContext](/reference/api/csharp/aspire.hosting/pipelinestepfactorycontext.md)
- Kind: `Properties`
- Members: `2`

Provides contextual information for creating pipeline steps from a [PipelineStepAnnotation](/reference/api/csharp/aspire.hosting/pipelinestepannotation.md).

## PipelineContext

- Name: `PipelineContext`
- Modifiers: `get; init`
- Returns: [PipelineContext](/reference/api/csharp/aspire.hosting/pipelinecontext.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/PipelineStepFactoryContext.cs)

Gets the pipeline context that has the model and other properties.

```csharp
public PipelineContext PipelineContext { get; init; }
```

## Resource

- Name: `Resource`
- Modifiers: `get; init`
- Returns: [IResource](/reference/api/csharp/aspire.hosting/iresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/PipelineStepFactoryContext.cs)

Gets the resource that this factory is associated with.

```csharp
public IResource Resource { get; init; }
```
