# 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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/Publishing/ComposeServiceInfo.cs)

Gets the name of the compose service.

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