Language

ArmAppContainersModelFactory.SessionProbeTcpSocket(String, Int32) Method

Definition

TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.

public static Azure.ResourceManager.AppContainers.Models.SessionProbeTcpSocket SessionProbeTcpSocket(string host = default, int port = 0);
static member SessionProbeTcpSocket : string * int -> Azure.ResourceManager.AppContainers.Models.SessionProbeTcpSocket
Public Shared Function SessionProbeTcpSocket (Optional host As String = Nothing, Optional port As Integer = 0) As SessionProbeTcpSocket

Parameters

host
String

Optional: Host name to connect to, defaults to the pod IP.

port
Int32

Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.

Returns

A new SessionProbeTcpSocket instance for mocking.

Applies to