# ComposeServiceInfo

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Publishing`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Publishing/ComposeServiceInfo.cs)

Represents a running service discovered from a compose environment.

## Definition

```csharp
namespace Aspire.Hosting.Publishing;

public sealed class ComposeServiceInfo
{
    // ...
}
```

## Constructors

- [ComposeServiceInfo](/reference/api/csharp/aspire.hosting/composeserviceinfo/constructors.md#constructor)

## Properties

- [Publishers](/reference/api/csharp/aspire.hosting/composeserviceinfo/properties.md#publishers) : [IReadOnlyList<ComposeServicePort>](/reference/api/csharp/aspire.hosting/composeserviceport.md) `get; init` -- Gets the published port mappings for the service.
- [Service](/reference/api/csharp/aspire.hosting/composeserviceinfo/properties.md#service) : `string?` `get; init` -- Gets the name of the compose service.
