# IPipelineOutputService Methods

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [IPipelineOutputService](/reference/api/csharp/aspire.hosting/ipipelineoutputservice.md)
- Kind: `Methods`
- Members: `4`

Service for managing pipeline output directories.

## GetOutputDirectory

- Name: `GetOutputDirectory`
- Modifiers: `abstract`
- Returns: `string`

Gets the output directory for deployment artifacts. If no output path is configured, defaults to the AppHost directory's `aspire-output` folder. Falls back to the current directory when the AppHost directory is unavailable.

```csharp
public interface IPipelineOutputService
{
    public abstract string GetOutputDirectory()
    {
        // ...
    }
}
```

## Returns

`string` -- The path to the output directory for deployment artifacts.

## GetOutputDirectory(IResource)

- Name: `GetOutputDirectory(IResource)`
- Modifiers: `abstract`
- Returns: `string`

Gets the output directory for a specific resource's deployment artifacts.

```csharp
public interface IPipelineOutputService
{
    public abstract string GetOutputDirectory(
        IResource resource)
    {
        // ...
    }
}
```

## Parameters

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

## Returns

`string` -- The path to the output directory for the resource's deployment artifacts.

## GetTempDirectory

- Name: `GetTempDirectory`
- Modifiers: `abstract`
- Returns: `string`

Gets a temporary directory for build artifacts.

```csharp
public interface IPipelineOutputService
{
    public abstract string GetTempDirectory()
    {
        // ...
    }
}
```

## Returns

`string` -- The path to a temporary directory for build artifacts.

## GetTempDirectory(IResource)

- Name: `GetTempDirectory(IResource)`
- Modifiers: `abstract`
- Returns: `string`

Gets a temporary directory for a specific resource's build artifacts.

```csharp
public interface IPipelineOutputService
{
    public abstract string GetTempDirectory(
        IResource resource)
    {
        // ...
    }
}
```

## Parameters

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

## Returns

`string` -- The path to a temporary directory for the resource's build artifacts.
