Rename Configure -> Attach

Part of: #11610
This commit is contained in:
Ryan Nowak 2019-07-16 20:14:35 -07:00 committed by Ryan Nowak
parent f7ba8f1002
commit 8ce68d04c1
31 changed files with 52 additions and 52 deletions

View File

@ -149,7 +149,7 @@ namespace Microsoft.AspNetCore.Blazor.Build.Test
[Parameter] [Parameter]
public RenderFragment Body { get; set; } public RenderFragment Body { get; set; }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
} }

View File

@ -99,7 +99,7 @@ namespace Microsoft.AspNetCore.Components
public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }} public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }}
[Microsoft.AspNetCore.Components.ParameterAttribute] [Microsoft.AspNetCore.Components.ParameterAttribute]
public T Value { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }} public T Value { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }}
public void Configure(Microsoft.AspNetCore.Components.RenderHandle renderHandle) { } public void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) { }
public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterCollection parameters) { throw null; } public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterCollection parameters) { throw null; }
} }
@ -114,7 +114,7 @@ namespace Microsoft.AspNetCore.Components
public System.Type Page { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }} public System.Type Page { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }}
[Microsoft.AspNetCore.Components.ParameterAttribute] [Microsoft.AspNetCore.Components.ParameterAttribute]
public System.Collections.Generic.IDictionary<string, object> PageParameters { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }} public System.Collections.Generic.IDictionary<string, object> PageParameters { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }}
public void Configure(Microsoft.AspNetCore.Components.RenderHandle renderHandle) { } public void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) { }
public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterCollection parameters) { throw null; } public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterCollection parameters) { throw null; }
} }
} }
@ -255,7 +255,7 @@ namespace Microsoft.AspNetCore.Components.Routing
public RenderFragment ChildContent { get; set; } public RenderFragment ChildContent { get; set; }
[Microsoft.AspNetCore.Components.ParameterAttribute] [Microsoft.AspNetCore.Components.ParameterAttribute]
public Microsoft.AspNetCore.Components.Routing.NavLinkMatch Match { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }} public Microsoft.AspNetCore.Components.Routing.NavLinkMatch Match { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }}
public void Configure(Microsoft.AspNetCore.Components.RenderHandle renderHandle) { } public void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) { }
public void Dispose() { } public void Dispose() { }
public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterCollection parameters) { throw null; } public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterCollection parameters) { throw null; }
} }
@ -271,7 +271,7 @@ namespace Microsoft.AspNetCore.Components.Routing
public Microsoft.AspNetCore.Components.RenderFragment<AuthenticationState> NotAuthorizedContent { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }} public Microsoft.AspNetCore.Components.RenderFragment<AuthenticationState> NotAuthorizedContent { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }}
[Microsoft.AspNetCore.Components.ParameterAttribute] [Microsoft.AspNetCore.Components.ParameterAttribute]
public Microsoft.AspNetCore.Components.RenderFragment AuthorizingContent { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }} public Microsoft.AspNetCore.Components.RenderFragment AuthorizingContent { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; }}
public void Configure(Microsoft.AspNetCore.Components.RenderHandle renderHandle) { } public void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) { }
public void Dispose() { } public void Dispose() { }
protected virtual void Render(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, System.Type handler, System.Collections.Generic.IDictionary<string, object> parameters) { } protected virtual void Render(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder, System.Type handler, System.Collections.Generic.IDictionary<string, object> parameters) { }
public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterCollection parameters) { throw null; } public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterCollection parameters) { throw null; }

View File

@ -110,7 +110,7 @@ namespace Microsoft.AspNetCore.Components
protected virtual void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) { } protected virtual void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) { }
protected System.Threading.Tasks.Task InvokeAsync(System.Action workItem) { throw null; } protected System.Threading.Tasks.Task InvokeAsync(System.Action workItem) { throw null; }
protected System.Threading.Tasks.Task InvokeAsync(System.Func<System.Threading.Tasks.Task> workItem) { throw null; } protected System.Threading.Tasks.Task InvokeAsync(System.Func<System.Threading.Tasks.Task> workItem) { throw null; }
void Microsoft.AspNetCore.Components.IComponent.Configure(Microsoft.AspNetCore.Components.RenderHandle renderHandle) { } void Microsoft.AspNetCore.Components.IComponent.Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) { }
System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() { throw null; } System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() { throw null; }
System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IHandleEvent.HandleEventAsync(Microsoft.AspNetCore.Components.EventCallbackWorkItem callback, object arg) { throw null; } System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IHandleEvent.HandleEventAsync(Microsoft.AspNetCore.Components.EventCallbackWorkItem callback, object arg) { throw null; }
protected virtual void OnAfterRender() { } protected virtual void OnAfterRender() { }
@ -359,7 +359,7 @@ namespace Microsoft.AspNetCore.Components
} }
public partial interface IComponent public partial interface IComponent
{ {
void Configure(Microsoft.AspNetCore.Components.RenderHandle renderHandle); void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle);
System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterCollection parameters); System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterCollection parameters);
} }
public partial interface IComponentContext public partial interface IComponentContext

View File

@ -50,7 +50,7 @@ namespace Microsoft.AspNetCore.Components
bool ICascadingValueComponent.CurrentValueIsFixed => IsFixed; bool ICascadingValueComponent.CurrentValueIsFixed => IsFixed;
/// <inheritdoc /> /// <inheritdoc />
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandle = renderHandle; _renderHandle = renderHandle;
} }

View File

@ -158,7 +158,7 @@ namespace Microsoft.AspNetCore.Components
protected Task InvokeAsync(Func<Task> workItem) protected Task InvokeAsync(Func<Task> workItem)
=> _renderHandle.Dispatcher.InvokeAsync(workItem); => _renderHandle.Dispatcher.InvokeAsync(workItem);
void IComponent.Configure(RenderHandle renderHandle) void IComponent.Attach(RenderHandle renderHandle)
{ {
// This implicitly means a ComponentBase can only be associated with a single // This implicitly means a ComponentBase can only be associated with a single
// renderer. That's the only use case we have right now. If there was ever a need, // renderer. That's the only use case we have right now. If there was ever a need,

View File

@ -11,10 +11,10 @@ namespace Microsoft.AspNetCore.Components
public interface IComponent public interface IComponent
{ {
/// <summary> /// <summary>
/// Initializes the component. /// Attaches the component to a <see cref="RenderHandle" />.
/// </summary> /// </summary>
/// <param name="renderHandle">A <see cref="RenderHandle"/> that allows the component to be rendered.</param> /// <param name="renderHandle">A <see cref="RenderHandle"/> that allows the component to be rendered.</param>
void Configure(RenderHandle renderHandle); void Attach(RenderHandle renderHandle);
/// <summary> /// <summary>
/// Sets parameters supplied by the component's parent in the render tree. /// Sets parameters supplied by the component's parent in the render tree.

View File

@ -45,7 +45,7 @@ namespace Microsoft.AspNetCore.Components
public RenderFragment AuthorizingContent { get; private set; } public RenderFragment AuthorizingContent { get; private set; }
/// <inheritdoc /> /// <inheritdoc />
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandle = renderHandle; _renderHandle = renderHandle;
} }

View File

@ -185,7 +185,7 @@ namespace Microsoft.AspNetCore.Components.Rendering
var componentState = new ComponentState(this, componentId, component, parentComponentState); var componentState = new ComponentState(this, componentId, component, parentComponentState);
Log.InitializingComponent(_logger, componentState, parentComponentState); Log.InitializingComponent(_logger, componentState, parentComponentState);
_componentStateById.Add(componentId, componentState); _componentStateById.Add(componentId, componentState);
component.Configure(new RenderHandle(this, componentId)); component.Attach(new RenderHandle(this, componentId));
return componentState; return componentState;
} }

View File

@ -56,7 +56,7 @@ namespace Microsoft.AspNetCore.Components.Routing
private RouteTable Routes { get; set; } private RouteTable Routes { get; set; }
/// <inheritdoc /> /// <inheritdoc />
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_logger = LoggerFactory.CreateLogger<Router>(); _logger = LoggerFactory.CreateLogger<Router>();
_renderHandle = renderHandle; _renderHandle = renderHandle;

View File

@ -374,7 +374,7 @@ namespace Microsoft.AspNetCore.Components.Test
{ {
var supplier = new CascadingValue<T>(); var supplier = new CascadingValue<T>();
var renderer = new TestRenderer(); var renderer = new TestRenderer();
supplier.Configure(new RenderHandle(renderer, 0)); supplier.Attach(new RenderHandle(renderer, 0));
var supplierParams = new Dictionary<string, object> var supplierParams = new Dictionary<string, object>
{ {
@ -424,7 +424,7 @@ namespace Microsoft.AspNetCore.Components.Test
class TestComponentBase : IComponent class TestComponentBase : IComponent
{ {
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
=> throw new NotImplementedException(); => throw new NotImplementedException();
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)

View File

@ -98,7 +98,7 @@ namespace Microsoft.AspNetCore.Components
private class EmptyComponent : IComponent private class EmptyComponent : IComponent
{ {
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
@ -125,7 +125,7 @@ namespace Microsoft.AspNetCore.Components
public TestService2 GetProperty2() => Property2; public TestService2 GetProperty2() => Property2;
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
@ -143,7 +143,7 @@ namespace Microsoft.AspNetCore.Components
public TestService1 Property2 { get; set; } public TestService1 Property2 { get; set; }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }

View File

@ -194,7 +194,7 @@ namespace Microsoft.AspNetCore.Components.Test
// not throw, then be sure also to add a test to verify that injection // not throw, then be sure also to add a test to verify that injection
// occurs before lifecycle methods. // occurs before lifecycle methods.
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
=> throw new NotImplementedException(); => throw new NotImplementedException();
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)

View File

@ -662,7 +662,7 @@ namespace Microsoft.AspNetCore.Components
return item.InvokeAsync(arg); return item.InvokeAsync(arg);
} }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
throw new System.NotImplementedException(); throw new System.NotImplementedException();
} }

View File

@ -635,7 +635,7 @@ namespace Microsoft.AspNetCore.Components
return Task.CompletedTask; return Task.CompletedTask;
} }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }

View File

@ -449,7 +449,7 @@ namespace Microsoft.AspNetCore.Components
return item.InvokeAsync(arg); return item.InvokeAsync(arg);
} }
public void Configure(RenderHandle renderHandle) => throw new NotImplementedException(); public void Attach(RenderHandle renderHandle) => throw new NotImplementedException();
public Task SetParametersAsync(ParameterCollection parameters) => throw new NotImplementedException(); public Task SetParametersAsync(ParameterCollection parameters) => throw new NotImplementedException();
} }

View File

@ -454,7 +454,7 @@ namespace Microsoft.AspNetCore.Components.Test
class FakeComponent : IComponent class FakeComponent : IComponent
{ {
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
=> throw new NotImplementedException(); => throw new NotImplementedException();
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)

View File

@ -342,7 +342,7 @@ namespace Microsoft.AspNetCore.Components.Test
private class FakeComponent : IComponent private class FakeComponent : IComponent
{ {
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
=> throw new NotImplementedException(); => throw new NotImplementedException();
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)

View File

@ -1810,7 +1810,7 @@ namespace Microsoft.AspNetCore.Components.Test
private class TestComponent : IComponent private class TestComponent : IComponent
{ {
public void Configure(RenderHandle renderHandle) { } public void Attach(RenderHandle renderHandle) { }
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)
=> throw new NotImplementedException(); => throw new NotImplementedException();

View File

@ -2221,7 +2221,7 @@ namespace Microsoft.AspNetCore.Components.Test
public string NonParameterProperty { get; set; } public string NonParameterProperty { get; set; }
public void Configure(RenderHandle renderHandle) { } public void Attach(RenderHandle renderHandle) { }
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)
{ {
parameters.SetParameterProperties(this); parameters.SetParameterProperties(this);
@ -2231,7 +2231,7 @@ namespace Microsoft.AspNetCore.Components.Test
private class FakeComponent2 : IComponent private class FakeComponent2 : IComponent
{ {
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
} }
@ -2242,7 +2242,7 @@ namespace Microsoft.AspNetCore.Components.Test
{ {
public int SetParametersCallCount { get; private set; } public int SetParametersCallCount { get; private set; }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
} }
@ -2258,14 +2258,14 @@ namespace Microsoft.AspNetCore.Components.Test
public int DisposalCount { get; private set; } public int DisposalCount { get; private set; }
public void Dispose() => DisposalCount++; public void Dispose() => DisposalCount++;
public void Configure(RenderHandle renderHandle) { } public void Attach(RenderHandle renderHandle) { }
public Task SetParametersAsync(ParameterCollection parameters) => Task.CompletedTask; public Task SetParametersAsync(ParameterCollection parameters) => Task.CompletedTask;
} }
private class NonDisposableComponent : IComponent private class NonDisposableComponent : IComponent
{ {
public void Configure(RenderHandle renderHandle) { } public void Attach(RenderHandle renderHandle) { }
public Task SetParametersAsync(ParameterCollection parameters) => Task.CompletedTask; public Task SetParametersAsync(ParameterCollection parameters) => Task.CompletedTask;
} }

View File

@ -3399,7 +3399,7 @@ namespace Microsoft.AspNetCore.Components.Test
_renderFragment = renderFragment; _renderFragment = renderFragment;
} }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandle = renderHandle; _renderHandle = renderHandle;
} }
@ -3470,7 +3470,7 @@ namespace Microsoft.AspNetCore.Components.Test
public RenderHandle RenderHandle { get; private set; } public RenderHandle RenderHandle { get; private set; }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
=> RenderHandle = renderHandle; => RenderHandle = renderHandle;
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)
@ -3619,7 +3619,7 @@ namespace Microsoft.AspNetCore.Components.Test
private RenderHandle _renderHandle; private RenderHandle _renderHandle;
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
=> _renderHandle = renderHandle; => _renderHandle = renderHandle;
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)
@ -3650,7 +3650,7 @@ namespace Microsoft.AspNetCore.Components.Test
private readonly List<RenderHandle> _renderHandles private readonly List<RenderHandle> _renderHandles
= new List<RenderHandle>(); = new List<RenderHandle>();
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
=> _renderHandles.Add(renderHandle); => _renderHandles.Add(renderHandle);
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)
@ -3764,7 +3764,7 @@ namespace Microsoft.AspNetCore.Components.Test
public int Number { get; set; } public int Number { get; set; }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandler = renderHandle; _renderHandler = renderHandle;
} }
@ -3806,7 +3806,7 @@ namespace Microsoft.AspNetCore.Components.Test
SomeMethodCallCount++; SomeMethodCallCount++;
} }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandle = renderHandle; _renderHandle = renderHandle;
} }

View File

@ -439,7 +439,7 @@ namespace Microsoft.AspNetCore.Components.Rendering
{ {
public RenderHandle RenderHandle { get; private set; } public RenderHandle RenderHandle { get; private set; }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
RenderHandle = renderHandle; RenderHandle = renderHandle;
} }
@ -553,7 +553,7 @@ namespace Microsoft.AspNetCore.Components.Rendering
{ {
private RenderHandle _renderHandle; private RenderHandle _renderHandle;
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandle = renderHandle; _renderHandle = renderHandle;
} }
@ -584,7 +584,7 @@ namespace Microsoft.AspNetCore.Components.Rendering
[Inject] [Inject]
public RenderFragment Fragment { get; set; } public RenderFragment Fragment { get; set; }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandle = renderHandle; _renderHandle = renderHandle;
} }

View File

@ -273,7 +273,7 @@ namespace Microsoft.AspNetCore.Components.Server.Circuits
private class ThrowOnDisposeComponent : IComponent, IDisposable private class ThrowOnDisposeComponent : IComponent, IDisposable
{ {
public bool DidCallDispose { get; private set; } public bool DidCallDispose { get; private set; }
public void Configure(RenderHandle renderHandle) { } public void Attach(RenderHandle renderHandle) { }
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)
=> Task.CompletedTask; => Task.CompletedTask;

View File

@ -221,7 +221,7 @@ namespace Microsoft.AspNetCore.Components.Server.Tests.Circuits
[Inject] IUriHelper UriHelper { get; set; } [Inject] IUriHelper UriHelper { get; set; }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandle = renderHandle; _renderHandle = renderHandle;
} }
@ -242,7 +242,7 @@ namespace Microsoft.AspNetCore.Components.Server.Tests.Circuits
class ThrowExceptionComponent : IComponent class ThrowExceptionComponent : IComponent
{ {
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
=> throw new InvalidTimeZoneException(); => throw new InvalidTimeZoneException();
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)

View File

@ -293,7 +293,7 @@ namespace Microsoft.AspNetCore.Components.Web.Rendering
public Action OnAfterRenderComplete { get; set; } public Action OnAfterRenderComplete { get; set; }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandle = renderHandle; _renderHandle = renderHandle;
} }
@ -325,7 +325,7 @@ namespace Microsoft.AspNetCore.Components.Web.Rendering
[Parameter] public Trigger Trigger { get; set; } [Parameter] public Trigger Trigger { get; set; }
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandle = renderHandle; _renderHandle = renderHandle;
} }

View File

@ -366,7 +366,7 @@ namespace Microsoft.AspNetCore.Components.Server
class FakeComponent : IComponent class FakeComponent : IComponent
{ {
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
=> throw new NotImplementedException(); => throw new NotImplementedException();
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)

View File

@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Components.Test.Helpers
{ {
private RenderHandle _renderHandle; private RenderHandle _renderHandle;
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandle = renderHandle; _renderHandle = renderHandle;
} }

View File

@ -33,7 +33,7 @@ namespace Microsoft.AspNetCore.Components.Test.Helpers
private abstract class AbstractComponent : IComponent private abstract class AbstractComponent : IComponent
{ {
public abstract void Configure(RenderHandle renderHandle); public abstract void Attach(RenderHandle renderHandle);
public abstract Task SetParametersAsync(ParameterCollection parameters); public abstract Task SetParametersAsync(ParameterCollection parameters);
} }
} }

View File

@ -325,7 +325,7 @@ namespace Ignitor
class FakeComponent : IComponent class FakeComponent : IComponent
{ {
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
=> throw new NotImplementedException(); => throw new NotImplementedException();
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)

View File

@ -307,7 +307,7 @@ namespace Ignitor
public class FakeComponent : IComponent public class FakeComponent : IComponent
{ {
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
=> throw new NotImplementedException(); => throw new NotImplementedException();
public Task SetParametersAsync(ParameterCollection parameters) public Task SetParametersAsync(ParameterCollection parameters)

View File

@ -272,7 +272,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures
{ {
private RenderHandle _renderHandle; private RenderHandle _renderHandle;
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandle = renderHandle; _renderHandle = renderHandle;
} }

View File

@ -251,7 +251,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Test
{ {
private RenderHandle _renderHandle; private RenderHandle _renderHandle;
public void Configure(RenderHandle renderHandle) public void Attach(RenderHandle renderHandle)
{ {
_renderHandle = renderHandle; _renderHandle = renderHandle;
} }