7 references to Create
Aspire.Dashboard (1)
Model\DashboardCommandExecutor.cs (1)
161
toastParameters.OnPrimaryAction = EventCallback.Factory.
Create
<ToastResult>(this, () => navigationManager.NavigateTo(DashboardUrls.ConsoleLogsUrl(resource: getResourceName(resource))));
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)(() =>