ArmAppContainersModelFactory.ContainerAppTcpSocketRequestInfo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.
public static Azure.ResourceManager.AppContainers.Models.ContainerAppTcpSocketRequestInfo ContainerAppTcpSocketRequestInfo(string host = default, int port = 0);
static member ContainerAppTcpSocketRequestInfo : string * int -> Azure.ResourceManager.AppContainers.Models.ContainerAppTcpSocketRequestInfo
Public Shared Function ContainerAppTcpSocketRequestInfo (Optional host As String = Nothing, Optional port As Integer = 0) As ContainerAppTcpSocketRequestInfo
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 ContainerAppTcpSocketRequestInfo instance for mocking.