10 references to Create
Microsoft.AspNetCore.Components.Tests (10)
EventCallbackFactoryTest.cs (4)
35
var callback = EventCallback.Factory.
Create
(component, @delegate);
53
var callback = EventCallback.Factory.
Create
(anotherComponent, @delegate);
71
var callback = EventCallback.Factory.
Create
(anotherComponent, @delegate);
86
var callback = EventCallback.Factory.
Create
(component, (Action)null);
RendererTest.cs (6)
1104
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.
Create
(parentComponent, (Action)parentComponent.SomeMethod));
1142
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.
Create
(parentComponent, (Action)(() =>
1374
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.
Create
(parentComponent, (Action)(() =>
1475
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.
Create
(parentComponent, (Action)(() =>
1577
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.
Create
(parentComponent, (Action)(() =>
6030
builder.AddAttribute(1, "onmakeerror", EventCallback.Factory.
Create
(this, () => { }));