6 references to Create
Microsoft.AspNetCore.Components.Tests (6)
EventCallbackFactoryTest.cs (4)
322
var callback = EventCallback.Factory.
Create
<string>(component, @delegate);
340
var callback = EventCallback.Factory.
Create
<string>(anotherComponent, @delegate);
358
var callback = EventCallback.Factory.
Create
<string>(anotherComponent, @delegate);
373
var callback = EventCallback.Factory.
Create
<string>(component, (Action)null);
RendererTest.cs (2)
1223
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.
Create
<DerivedEventArgs>(parentComponent, (Action)parentComponent.SomeMethod));
1261
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.
Create
<DerivedEventArgs>(parentComponent, (Action)(() =>