Skip to content

Commit 497e9d2

Browse files
authored
Merge branch 'master' into merge/release/3.0-preview5-to-master
2 parents 405f458 + de8ea91 commit 497e9d2

File tree

39 files changed

+799
-695
lines changed

39 files changed

+799
-695
lines changed

.azure/pipelines/signalr-daily-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ jobs:
1414
agentOs: Windows
1515
jobName: SignalRDailyTests
1616
jobDisplayName: "SignalR Daily Tests"
17-
17+
artifacts:
18+
- name: Windows_Logs
19+
path: ../../artifacts/logs/
20+
publishOnError: true

eng/Version.Details.xml

Lines changed: 188 additions & 188 deletions
Large diffs are not rendered by default.

eng/Versions.props

Lines changed: 94 additions & 94 deletions
Large diffs are not rendered by default.

eng/scripts/CodeCheck.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ try {
143143
if ($changedFiles) {
144144
foreach ($file in $changedFiles) {
145145
$filePath = Resolve-Path "${repoRoot}/${file}"
146-
LogError "Generated code is not up to date in $file." -filepath $filePath
146+
LogError "Generated code is not up to date in $file. You might need to regenerate the reference assemblies or project list (see docs/ReferenceAssemblies.md and docs/ReferenceResolution.md)" -filepath $filePath
147147
& git --no-pager diff --ignore-space-at-eol $filePath
148148
}
149149
}

src/Components/Blazor/Build/test/ComponentRenderingRazorIntegrationTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public class MyComponent : ComponentBase
350350
// Assert: Captured ChildContent frames are correct
351351
var childFrames = GetFrames((RenderFragment)frames[2].AttributeValue);
352352
Assert.Collection(
353-
childFrames,
353+
childFrames.AsEnumerable(),
354354
frame => AssertFrame.Text(frame, "Some text", 3),
355355
frame => AssertFrame.Element(frame, "some-child", 4, 4),
356356
frame => AssertFrame.Attribute(frame, "a", "1", 5),
@@ -393,15 +393,15 @@ public class MyComponent : ComponentBase
393393
// correct relative to each other (i.e., incrementing) within the nesting level.
394394
// As an implementation detail, it happens that they do follow on from the parent
395395
// level, but we could change that part of the implementation if we wanted.
396-
var innerFrames = GetFrames((RenderFragment)frames[1].AttributeValue).ToArray();
396+
var innerFrames = GetFrames((RenderFragment)frames[1].AttributeValue).AsEnumerable().ToArray();
397397
Assert.Collection(
398398
innerFrames,
399399
frame => AssertFrame.Component(frame, "Test.MyComponent", 2, 2),
400400
frame => AssertFrame.Attribute(frame, RenderTreeBuilder.ChildContent, 3));
401401

402402
// Assert: second level of ChildContent is correct
403403
Assert.Collection(
404-
GetFrames((RenderFragment)innerFrames[1].AttributeValue),
404+
GetFrames((RenderFragment)innerFrames[1].AttributeValue).AsEnumerable(),
405405
frame => AssertFrame.Text(frame, "Some text", 4));
406406
}
407407

@@ -547,7 +547,7 @@ public class MyComponent : ComponentBase
547547
// Assert: Captured ChildContent frames are correct
548548
var childFrames = GetFrames((RenderFragment)frames[6].AttributeValue);
549549
Assert.Collection(
550-
childFrames,
550+
childFrames.AsEnumerable(),
551551
frame => AssertFrame.MarkupWhitespace(frame, 7),
552552
frame => AssertFrame.Markup(frame, "<div><span></span><span></span></div>\n ", 8),
553553
frame => AssertFrame.Element(frame, "div", 2, 9),

src/Components/Blazor/Build/test/RazorIntegrationTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ protected override void HandleException(Exception exception)
457457

458458
protected override Task UpdateDisplayAsync(in RenderBatch renderBatch)
459459
{
460-
LatestBatchReferenceFrames = renderBatch.ReferenceFrames.ToArray();
460+
LatestBatchReferenceFrames = renderBatch.ReferenceFrames.AsEnumerable().ToArray();
461461
return Task.CompletedTask;
462462
}
463463
}

src/Components/Blazor/Build/test/RenderingRazorIntegrationTest.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -244,22 +244,6 @@ public void SupportsAttributesWithInterpolatedStringExpressionValues()
244244
frame => AssertFrame.Attribute(frame, "attr", "Hello, WORLD with number 246!", 1));
245245
}
246246

247-
// This test exercises the case where two IntermediateTokens are part of the same expression.
248-
// In these case they are split by a comment.
249-
[Fact]
250-
public void SupportsAttributesWithInterpolatedStringExpressionValues_SplitByComment()
251-
{
252-
// Arrange/Act
253-
var component = CompileToComponent(
254-
"@{ var myValue = \"world\"; var myNum=123; }"
255-
+ "<elem attr=\"Hello, @myValue.ToUpperInvariant() with number @(myN@* Blazor is Blawesome! *@um*2)!\" />");
256-
257-
// Assert
258-
Assert.Collection(GetRenderTree(component),
259-
frame => AssertFrame.Element(frame, "elem", 2, 0),
260-
frame => AssertFrame.Attribute(frame, "attr", "Hello, WORLD with number 246!", 1));
261-
}
262-
263247
[Fact]
264248
public void SupportsAttributesWithInterpolatedTernaryExpressionValues()
265249
{

src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -726,14 +726,12 @@ protected virtual void Dispose(bool disposing) { }
726726
namespace Microsoft.AspNetCore.Components.RenderTree
727727
{
728728
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
729-
public readonly partial struct ArrayRange<T> : System.Collections.Generic.IEnumerable<T>, System.Collections.IEnumerable
729+
public readonly partial struct ArrayRange<T>
730730
{
731731
public readonly T[] Array;
732732
public readonly int Count;
733733
public ArrayRange(T[] array, int count) { throw null; }
734734
public Microsoft.AspNetCore.Components.RenderTree.ArrayRange<T> Clone() { throw null; }
735-
System.Collections.Generic.IEnumerator<T> System.Collections.Generic.IEnumerable<T>.GetEnumerator() { throw null; }
736-
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
737735
}
738736
public partial class RenderTreeBuilder
739737
{

src/Components/Components/src/RenderTree/ArrayRange.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
using System;
5-
using System.Collections;
6-
using System.Collections.Generic;
7-
84
namespace Microsoft.AspNetCore.Components.RenderTree
95
{
106
/// <summary>
117
/// Represents a range of elements in an array that are in use.
128
/// </summary>
139
/// <typeparam name="T">The array item type.</typeparam>
14-
public readonly struct ArrayRange<T> : IEnumerable, IEnumerable<T>
10+
public readonly struct ArrayRange<T>
1511
{
1612
/// <summary>
1713
/// Gets the underlying array instance.
@@ -34,14 +30,6 @@ public ArrayRange(T[] array, int count)
3430
Count = count;
3531
}
3632

37-
/// <inheritdoc />
38-
IEnumerator<T> IEnumerable<T>.GetEnumerator()
39-
=> ((IEnumerable<T>)new ArraySegment<T>(Array, 0, Count)).GetEnumerator();
40-
41-
/// <inheritdoc />
42-
IEnumerator IEnumerable.GetEnumerator()
43-
=> ((IEnumerable)new ArraySegment<T>(Array, 0, Count)).GetEnumerator();
44-
4533
/// <summary>
4634
/// Creates a shallow clone of the instance.
4735
/// </summary>

0 commit comments

Comments
 (0)