/// <summary> /// Initializes a new instance of the HttpRouteConfig class. /// </summary> /// <param name="name">http route name.</param> /// <param name="match">Describes a rule for http route matching.</param> /// <param name="destination">Describes destination endpoint for routing traffic.</param> public HttpRouteConfig( string name, HttpRouteMatchRule match, GatewayDestination destination) { name.ThrowIfNull(nameof(name)); match.ThrowIfNull(nameof(match)); destination.ThrowIfNull(nameof(destination)); this.Name = name; this.Match = match; this.Destination = destination; }
/// <summary> /// Initializes a new instance of the TcpConfig class. /// </summary> /// <param name="name">tcp gateway config name.</param> /// <param name="port">Specifies the port at which the service endpoint below needs to be exposed.</param> /// <param name="destination">Describes destination endpoint for routing traffic.</param> public TcpConfig( string name, int?port, GatewayDestination destination) { name.ThrowIfNull(nameof(name)); port.ThrowIfNull(nameof(port)); destination.ThrowIfNull(nameof(destination)); this.Name = name; this.Port = port; this.Destination = destination; }