33 references to Create
Aspire.Dashboard (21)
Components\Controls\ApplicationSummary.razor.cs (1)
681EventCallback.Factory.Create<CommandViewModel>(this, command => ExecuteCommandAsync(resource, command)),
Components\Controls\AspireMenuItem.razor.cs (2)
47attributes["onclick"] = EventCallback.Factory.Create<MouseEventArgs>(this, HandleRadioClicked); 48attributes["onkeydown"] = EventCallback.Factory.Create<KeyboardEventArgs>(this, HandleRadioKeyDown);
Components\Interactions\InteractionsProvider.cs (2)
188dialogParameters.OnDialogResult = EventCallback.Factory.Create<DialogResult>(this, async dialogResult => 771return EventCallback.Factory.Create<DialogResult>(this, async dialogResult =>
Components\Layout\ResourcesLayout.razor.cs (3)
2057EventCallback.Factory.Create<CommandViewModel>(this, command => ExecuteResourceCommandAsync(resource, command)), 2183click = EventCallback.Factory.Create<MouseEventArgs>(this, e => OnRowClickAsync(e, telemetryResourceName)); 3169Click = EventCallback.Factory.Create<MouseEventArgs>(layout, e =>
Components\Legacy\Pages\ConsoleLogs.razor.cs (2)
537EventCallback.Factory.Create<bool>(this, async 585EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Legacy\Pages\Resources.razor.cs (2)
606EventCallback.Factory.Create<bool>( 722EventCallback.Factory.Create<CommandViewModel>(this, (command) => ExecuteResourceCommandAsync(resource, command)),
Components\Legacy\Pages\Terminals.razor.cs (2)
245EventCallback.Factory.Create<bool>(this, async showHidden => 264EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Pages\ConsoleLogs.razor.cs (2)
664EventCallback.Factory.Create<bool>(this, async 719EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Pages\Resources.razor.cs (2)
652EventCallback.Factory.Create<bool>( 799EventCallback.Factory.Create<CommandViewModel>(this, (command) => ExecuteResourceCommandAsync(resource, command)),
Components\Pages\Terminals.razor.cs (2)
272EventCallback.Factory.Create<bool>(this, async showHidden => 291EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Model\DashboardDialogService.cs (1)
132return EventCallback.Factory.Create(receiver, callback);
Aspire.Dashboard.Components.Tests (5)
Controls\ResourceDetailsTests.cs (1)
916builder.Add(p => p.CommandSelected, EventCallback.Factory.Create<CommandViewModel>(this, _ => Task.CompletedTask));
Model\DashboardDialogServiceTests.cs (2)
90OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, async _ => 95OnDialogResult = EventCallback.Factory.Create<DialogResult>(this, async _ =>
Pages\ResourcesTests.cs (2)
296builder.Add(component => component.CommandSelected, EventCallback.Factory.Create<CommandViewModel>(this, _ => Task.CompletedTask)); 298builder.Add(component => component.OnViewDetails, EventCallback.Factory.Create<string?>(this, _ => Task.CompletedTask));
Microsoft.AspNetCore.Components (6)
CompilerServices\RuntimeHelpers.cs (1)
53return EventCallback.Factory.Create<T>(receiver, callback);
EventCallbackFactory.cs (1)
193return Create(receiver, callback);
EventCallbackFactoryBinderExtensions.cs (2)
1435return factory.Create<ChangeEventArgs>(receiver, callback); 1525return factory.Create<ChangeEventArgs>(receiver, callback);
EventCallbackFactoryEventArgsExtensions.cs (2)
38return factory.Create<EventArgs>(receiver, callback); 68return factory.Create<ChangeEventArgs>(receiver, callback);
Microsoft.AspNetCore.Components.AI (1)
Components\MessageInput.cs (1)
109EventCallback.Factory.Create<KeyboardEventArgs>(this, OnKeyDown));