Example #1
0
 /// <summary>
 /// Applies the port portion of the authority to this builder, overwriting any existing port.
 /// </summary>
 /// <param name="this">The builder.</param>
 /// <param name="port">The port.</param>
 public static T WithPort <T>(this IBuilderWithPort <T> @this, uint port) => @this.WithPort(port.ToString(CultureInfo.InvariantCulture));
Example #2
0
 /// <summary>
 /// Applies the port portion of the authority to this builder, overwriting any existing port.
 /// </summary>
 /// <param name="this">The builder.</param>
 /// <param name="port">The port.</param>
 public static T WithPort <T>(this IBuilderWithPort <T> @this, uint port)
 {
     _ = @this ?? throw new ArgumentNullException(nameof(@this));
     return(@this.WithPort(port.ToString(CultureInfo.InvariantCulture)));
 }