31 references to Create
Aspire.Dashboard (19)
Components\Controls\ApplicationSummary.razor.cs (1)
643EventCallback.Factory.Create<CommandViewModel>(this, command => ExecuteCommandAsync(resource, command)),
Components\Controls\AspireMenuItem.razor.cs (2)
43attributes["onclick"] = EventCallback.Factory.Create<MouseEventArgs>(this, HandleRadioClicked); 44attributes["onkeydown"] = EventCallback.Factory.Create<KeyboardEventArgs>(this, HandleRadioKeyDown);
Components\Interactions\InteractionsProvider.cs (2)
176dialogParameters.OnDialogResult = EventCallback.Factory.Create<DialogResult>(this, async dialogResult => 740return EventCallback.Factory.Create<DialogResult>(this, async dialogResult =>
Components\Layout\ResourcesLayout.razor.cs (1)
1365EventCallback.Factory.Create<CommandViewModel>(this, command => ExecuteResourceCommandAsync(resource, command)),
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)
599EventCallback.Factory.Create<bool>( 715EventCallback.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)
604EventCallback.Factory.Create<bool>(this, async 652EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Pages\Resources.razor.cs (2)
600EventCallback.Factory.Create<bool>( 747EventCallback.Factory.Create<CommandViewModel>(this, (command) => ExecuteResourceCommandAsync(resource, command)),
Components\Pages\Terminals.razor.cs (2)
275EventCallback.Factory.Create<bool>(this, async showHidden => 294EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Model\DashboardDialogService.cs (1)
115return EventCallback.Factory.Create(receiver, callback);
Aspire.Dashboard.Components.Tests (5)
Controls\ResourceDetailsTests.cs (1)
918builder.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)
258builder.Add(component => component.CommandSelected, EventCallback.Factory.Create<CommandViewModel>(this, _ => Task.CompletedTask)); 260builder.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));