# TcpSocketActionV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/TcpSocketActionV1.cs)

Represents a TCP socket action configuration used in Kubernetes resources. This class is typically utilized for health or readiness probes or lifecycle handlers, allowing the definition of connectivity checks to a specified host and port via TCP.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

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

## Constructors

- [TcpSocketActionV1](/reference/api/csharp/aspire.hosting.kubernetes/tcpsocketactionv1/constructors.md#constructor)

## Properties

- [Host](/reference/api/csharp/aspire.hosting.kubernetes/tcpsocketactionv1/properties.md#host) : `string` `get; set` -- Specifies the hostname or IP address to be used for the TCP socket action.
- [Port](/reference/api/csharp/aspire.hosting.kubernetes/tcpsocketactionv1/properties.md#port) : `int` `get; set` -- Gets or sets the port number to access for the TCP socket action. This property specifies the numeric port on which the TCP connection should be established.
