31 references to Create
Aspire.Dashboard (19)
Components\Controls\ApplicationSummary.razor.cs (1)
643
EventCallback.Factory.
Create
<CommandViewModel>(this, command => ExecuteCommandAsync(resource, command)),
Components\Controls\AspireMenuItem.razor.cs (2)
43
attributes["onclick"] = EventCallback.Factory.
Create
<MouseEventArgs>(this, HandleRadioClicked);
44
attributes["onkeydown"] = EventCallback.Factory.
Create
<KeyboardEventArgs>(this, HandleRadioKeyDown);
Components\Interactions\InteractionsProvider.cs (2)
176
dialogParameters.OnDialogResult = EventCallback.Factory.
Create
<DialogResult>(this, async dialogResult =>
740
return EventCallback.Factory.
Create
<DialogResult>(this, async dialogResult =>
Components\Layout\ResourcesLayout.razor.cs (1)
1365
EventCallback.Factory.
Create
<CommandViewModel>(this, command => ExecuteResourceCommandAsync(resource, command)),
Components\Legacy\Pages\ConsoleLogs.razor.cs (2)
537
EventCallback.Factory.
Create
<bool>(this, async
585
EventCallback.Factory.
Create
<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Legacy\Pages\Resources.razor.cs (2)
599
EventCallback.Factory.
Create
<bool>(
715
EventCallback.Factory.
Create
<CommandViewModel>(this, (command) => ExecuteResourceCommandAsync(resource, command)),
Components\Legacy\Pages\Terminals.razor.cs (2)
245
EventCallback.Factory.
Create
<bool>(this, async showHidden =>
264
EventCallback.Factory.
Create
<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Pages\ConsoleLogs.razor.cs (2)
604
EventCallback.Factory.
Create
<bool>(this, async
652
EventCallback.Factory.
Create
<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Pages\Resources.razor.cs (2)
600
EventCallback.Factory.
Create
<bool>(
747
EventCallback.Factory.
Create
<CommandViewModel>(this, (command) => ExecuteResourceCommandAsync(resource, command)),
Components\Pages\Terminals.razor.cs (2)
275
EventCallback.Factory.
Create
<bool>(this, async showHidden =>
294
EventCallback.Factory.
Create
<CommandViewModel>(this, ExecuteResourceCommandAsync),
Model\DashboardDialogService.cs (1)
115
return EventCallback.Factory.
Create
(receiver, callback);
Aspire.Dashboard.Components.Tests (5)
Controls\ResourceDetailsTests.cs (1)
918
builder.Add(p => p.CommandSelected, EventCallback.Factory.
Create
<CommandViewModel>(this, _ => Task.CompletedTask));
Model\DashboardDialogServiceTests.cs (2)
90
OnDialogClosing = EventCallback.Factory.
Create
<IDialogInstance>(this, async _ =>
95
OnDialogResult = EventCallback.Factory.
Create
<DialogResult>(this, async _ =>
Pages\ResourcesTests.cs (2)
258
builder.Add(component => component.CommandSelected, EventCallback.Factory.
Create
<CommandViewModel>(this, _ => Task.CompletedTask));
260
builder.Add(component => component.OnViewDetails, EventCallback.Factory.
Create
<string?>(this, _ => Task.CompletedTask));
Microsoft.AspNetCore.Components (6)
CompilerServices\RuntimeHelpers.cs (1)
53
return EventCallback.Factory.
Create
<T>(receiver, callback);
EventCallbackFactory.cs (1)
193
return
Create
(receiver, callback);
EventCallbackFactoryBinderExtensions.cs (2)
1435
return factory.
Create
<ChangeEventArgs>(receiver, callback);
1525
return factory.
Create
<ChangeEventArgs>(receiver, callback);
EventCallbackFactoryEventArgsExtensions.cs (2)
38
return factory.
Create
<EventArgs>(receiver, callback);
68
return factory.
Create
<ChangeEventArgs>(receiver, callback);
Microsoft.AspNetCore.Components.AI (1)
Components\MessageInput.cs (1)
109
EventCallback.Factory.
Create
<KeyboardEventArgs>(this, OnKeyDown));