Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Components/Endpoints/src/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable enable
Microsoft.AspNetCore.Components.Endpoints.BasePath
Microsoft.AspNetCore.Components.Endpoints.BasePath.BasePath() -> void
Microsoft.AspNetCore.Components.Web.BasePath
Microsoft.AspNetCore.Components.Web.BasePath.BasePath() -> void
Comment on lines +2 to +3

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mismatch between the namespace and assembly sounds weird to me.

The PR at some point was moving it to the other assembly, what was the reason to change it back here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @javiercn has more context here due to #64590 (comment)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That host specific behavior doesn't belong on shared abstractions assemblies and that namespace <-> library is not a hard rule, but a common convention.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any reason for having to keep it in .Endpoints.

Microsoft.AspNetCore.Components.Endpoints.RazorComponentsServiceOptions.CacheViewSizeLimit.get -> long
Microsoft.AspNetCore.Components.Endpoints.RazorComponentsServiceOptions.CacheViewSizeLimit.set -> void
Microsoft.AspNetCore.Components.Endpoints.RazorComponentsServiceOptions.DisableClientValidation.get -> bool
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Endpoints/src/Routing/BasePath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using Microsoft.AspNetCore.Components.Rendering;

namespace Microsoft.AspNetCore.Components.Endpoints;
namespace Microsoft.AspNetCore.Components.Web;

/// <summary>
/// Renders a &lt;base&gt; element whose <c>href</c> value matches the current request path base.
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Endpoints/test/Routing/BasePathTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#nullable enable

namespace Microsoft.AspNetCore.Components.Endpoints;
namespace Microsoft.AspNetCore.Components.Web;

public class BasePathTest
Comment thread
Youssef1313 marked this conversation as resolved.
Resolved
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@using System.Net.Http
@using System.Net.Http.Json
@using Microsoft.AspNetCore.Components.Endpoints
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@using System.Net.Http
@using System.Net.Http.Json
@using Microsoft.AspNetCore.Components.Endpoints
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
@using TestContentPackage.NotFound
@using Components.TestServer.RazorComponents
@using Microsoft.AspNetCore.Components
@using Microsoft.AspNetCore.Components.Endpoints
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using System.Threading.Tasks
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@using Components.TestServer.RazorComponents.Pages.Forms
@using Microsoft.AspNetCore.Components.Endpoints

<!DOCTYPE html>
<html lang="en">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@page "/resource-collection"
@using Microsoft.AspNetCore.Components.Web;
@using Microsoft.AspNetCore.Components.Endpoints;

<PageTitle>Resource Collection</PageTitle>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@using Microsoft.AspNetCore.Components.Endpoints



Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: unnecessary blank line

<!DOCTYPE html>
<html lang="en">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@using Components.TestServer.RazorComponents.Pages.Forms
@using Microsoft.AspNetCore.Components.Endpoints
@using Microsoft.AspNetCore.Components.Web

<!DOCTYPE html>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@using System.Net.Http
@using System.Net.Http.Json
@using Microsoft.AspNetCore.Components.Endpoints
@*#if (IndividualLocalAuth)
@using Microsoft.AspNetCore.Components.Authorization
##endif*@
Expand Down
Loading