Skip to content

Commit 335bb4f

Browse files
authored
Fix API and remove additional constructor
1 parent 295c17e commit 335bb4f

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/Components/Components/src/PublicAPI.Shipped.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrameType.Region = 5 -> Mic
417417
Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrameType.Text = 2 -> Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrameType
418418
Microsoft.AspNetCore.Components.ResourceAsset
419419
Microsoft.AspNetCore.Components.ResourceAsset.Properties.get -> System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Components.ResourceAssetProperty!>?
420-
Microsoft.AspNetCore.Components.ResourceAsset.ResourceAsset(string! url, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Components.ResourceAssetProperty!>? properties) -> void
421420
Microsoft.AspNetCore.Components.ResourceAsset.Url.get -> string!
422421
Microsoft.AspNetCore.Components.ResourceAssetCollection
423422
Microsoft.AspNetCore.Components.ResourceAssetCollection.IsContentSpecificUrl(string! path) -> bool

src/Components/Components/src/ResourceAsset.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,8 @@ namespace Microsoft.AspNetCore.Components;
1212
/// <param name="url">The URL of the resource.</param>
1313
/// <param name="properties">The properties associated to this resource.</param>
1414
[DebuggerDisplay($"{{{nameof(GetDebuggerDisplay)}(),nq}}")]
15-
public sealed class ResourceAsset(string url, IReadOnlyList<ResourceAssetProperty>? properties)
15+
public sealed class ResourceAsset(string url, IReadOnlyList<ResourceAssetProperty>? properties = null)
1616
{
17-
/// <summary>
18-
/// Initializes a new instance of <see cref="ResourceAsset"/>.
19-
/// </summary>
20-
/// <param name="url">The URL of the resource.</param>
21-
public ResourceAsset(string url) : this(url, null) { }
2217
/// <summary>
2318
/// Gets the URL that identifies this resource.
2419
/// </summary>

0 commit comments

Comments
 (0)