30 references to Create
Aspire.Dashboard (2)
Components\Layout\MainLayout.razor.cs (2)
170
OnDialogClosing = EventCallback.Factory.
Create
<DialogInstance>(this, HandleDialogClose)
204
OnDialogClosing = EventCallback.Factory.
Create
<DialogInstance>(this, HandleDialogClose)
Microsoft.AspNetCore.Components (6)
CompilerServices\RuntimeHelpers.cs (1)
36
return EventCallback.Factory.
Create
<T>(receiver, callback);
EventCallbackFactory.cs (1)
179
return
Create
(receiver, callback);
EventCallbackFactoryBinderExtensions.cs (2)
1379
return factory.
Create
<ChangeEventArgs>(receiver, callback);
1466
return factory.
Create
<ChangeEventArgs>(receiver, callback);
EventCallbackFactoryEventArgsExtensions.cs (2)
23
return factory.
Create
<EventArgs>(receiver, callback);
53
return factory.
Create
<ChangeEventArgs>(receiver, callback);
Microsoft.AspNetCore.Components.Tests (11)
EventCallbackFactoryTest.cs (8)
102
var callback = EventCallback.Factory.
Create
(component, @delegate);
120
var callback = EventCallback.Factory.
Create
(anotherComponent, @delegate);
138
var callback = EventCallback.Factory.
Create
(anotherComponent, @delegate);
153
var callback = EventCallback.Factory.
Create
(component, (Action<string>)null);
389
var callback = EventCallback.Factory.
Create
<string>(component, @delegate);
407
var callback = EventCallback.Factory.
Create
<string>(anotherComponent, @delegate);
422
var callback = EventCallback.Factory.
Create
<string>(component, (Action<string>)null);
440
var callback = EventCallback.Factory.
Create
<string>(anotherComponent, @delegate);
RendererTest.cs (3)
1408
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.
Create
(parentComponent, (Action<DerivedEventArgs>)((e) =>
1509
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.
Create
(parentComponent, (Action<DerivedEventArgs>)((e) =>
1611
builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.
Create
<DerivedEventArgs>(parentComponent, (Action<DerivedEventArgs>)((e) =>
Microsoft.AspNetCore.Components.Web (10)
Web\WebEventCallbackFactoryEventArgsExtensions.cs (10)
24
return factory.
Create
<ClipboardEventArgs>(receiver, callback);
56
return factory.
Create
<DragEventArgs>(receiver, callback);
88
return factory.
Create
<ErrorEventArgs>(receiver, callback);
120
return factory.
Create
<FocusEventArgs>(receiver, callback);
152
return factory.
Create
<KeyboardEventArgs>(receiver, callback);
184
return factory.
Create
<MouseEventArgs>(receiver, callback);
215
return factory.
Create
<PointerEventArgs>(receiver, callback);
247
return factory.
Create
<ProgressEventArgs>(receiver, callback);
279
return factory.
Create
<TouchEventArgs>(receiver, callback);
311
return factory.
Create
<WheelEventArgs>(receiver, callback);
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\TestInputHostComponent.cs (1)
31
EventCallback.Factory.
Create
(this, ValueChanged));