# ComposeServiceInfo Properties

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

Represents a running service discovered from a compose environment.

## Publishers

- Name: `Publishers`
- Modifiers: `nullable` `get; init`
- Returns: [IReadOnlyList<ComposeServicePort>](/reference/api/csharp/aspire.hosting/composeserviceport.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Publishing/ComposeServiceInfo.cs)

Gets the published port mappings for the service.

```csharp
public IReadOnlyList<ComposeServicePort>? Publishers { get; init; }
```

## Service

- Name: `Service`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Publishing/ComposeServiceInfo.cs)

Gets the name of the compose service.

```csharp
public string? Service { get; init; }
```
