27 references to Create
Microsoft.AspNetCore.Components (6)
CompilerServices\RuntimeHelpers.cs (1)
53
return EventCallback.Factory.
Create
<T>(receiver, callback);
EventCallbackFactory.cs (1)
193
return
Create
(receiver, callback);
EventCallbackFactoryBinderExtensions.cs (2)
1422
return factory.
Create
<ChangeEventArgs>(receiver, callback);
1510
return factory.
Create
<ChangeEventArgs>(receiver, callback);
EventCallbackFactoryEventArgsExtensions.cs (2)
38
return factory.
Create
<EventArgs>(receiver, callback);
68
return factory.
Create
<ChangeEventArgs>(receiver, callback);
Microsoft.AspNetCore.Components.Tests (11)
EventCallbackFactoryTest.cs (8)
221
var callback = EventCallback.Factory.
Create
(component, @delegate);
254
var callback = EventCallback.Factory.
Create
(anotherComponent, @delegate);
272
var callback = EventCallback.Factory.
Create
(anotherComponent, @delegate);
287
var callback = EventCallback.Factory.
Create
(component, (Func<string, Task>)null);
523
var callback = EventCallback.Factory.
Create
<string>(component, @delegate);
541
var callback = EventCallback.Factory.
Create
<string>(anotherComponent, @delegate);
559
var callback = EventCallback.Factory.
Create
<string>(anotherComponent, @delegate);
574
var callback = EventCallback.Factory.
Create
<string>(component, (Func<string, Task>)null);
RendererTest.cs (3)
1721
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.
Create
<DerivedEventArgs>(parentComponent, async (e) =>
1838
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.
Create
<DerivedEventArgs>(parentComponent, async (e) =>
1956
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.
Create
<DerivedEventArgs>(parentComponent, async (e) =>
Microsoft.AspNetCore.Components.Web (10)
Web\WebEventCallbackFactoryEventArgsExtensions.cs (10)
40
return factory.
Create
<ClipboardEventArgs>(receiver, callback);
72
return factory.
Create
<DragEventArgs>(receiver, callback);
104
return factory.
Create
<ErrorEventArgs>(receiver, callback);
136
return factory.
Create
<FocusEventArgs>(receiver, callback);
168
return factory.
Create
<KeyboardEventArgs>(receiver, callback);
200
return factory.
Create
<MouseEventArgs>(receiver, callback);
231
return factory.
Create
<PointerEventArgs>(receiver, callback);
263
return factory.
Create
<ProgressEventArgs>(receiver, callback);
295
return factory.
Create
<TouchEventArgs>(receiver, callback);
327
return factory.
Create
<WheelEventArgs>(receiver, callback);