/// <summary> /// Initializes a new instance of the <see cref="GetRemoteEndPoints" /> class. /// </summary> /// <param name="inventory">The current inventory.</param> public GetRemoteEndPoints(RemoteServiceInventory inventory) { Argument.NotNull(inventory, nameof(inventory)); _inventory = inventory; }
/// <summary> /// Initializes a new instance of the <see cref="HttpRouter"/> class. /// </summary> /// <param name="context">The context accessor.</param> /// <param name="endPoints">The remote service inventory.</param> public HttpRouter(IHttpContextAccessor context, RemoteServiceInventory endPoints) { _context = context; _endPoints = endPoints; }
/// <summary> /// Initializes a new instance of the <see cref="HttpRouter"/> class. /// </summary> /// <param name="endPoints">The remote service inventory.</param> public HttpRouter(RemoteServiceInventory endPoints) : this(null, endPoints) { }