7 references to Create
Aspire.Dashboard (1)
Model\DashboardCommandExecutor.cs (1)
161toastParameters.OnPrimaryAction = EventCallback.Factory.Create<ToastResult>(this, () => navigationManager.NavigateTo(DashboardUrls.ConsoleLogsUrl(resource: getResourceName(resource))));
Microsoft.AspNetCore.Components.Tests (6)
EventCallbackFactoryTest.cs (4)
322var callback = EventCallback.Factory.Create<string>(component, @delegate); 340var callback = EventCallback.Factory.Create<string>(anotherComponent, @delegate); 358var callback = EventCallback.Factory.Create<string>(anotherComponent, @delegate); 373var callback = EventCallback.Factory.Create<string>(component, (Action)null);
RendererTest.cs (2)
1223builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action)parentComponent.SomeMethod)); 1261builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action)(() =>