21 references to Create
Aspire.Dashboard (9)
Components\Interactions\InteractionsProvider.cs (2)
167dialogParameters.OnDialogResult = EventCallback.Factory.Create<DialogResult>(this, async dialogResult => 610return EventCallback.Factory.Create<DialogResult>(this, async dialogResult =>
Components\Pages\ConsoleLogs.razor.cs (2)
534EventCallback.Factory.Create<bool>(this, async 582EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Pages\Resources.razor.cs (2)
599EventCallback.Factory.Create<bool>( 715EventCallback.Factory.Create<CommandViewModel>(this, (command) => ExecuteResourceCommandAsync(resource, command)),
Components\Pages\Terminals.razor.cs (2)
245EventCallback.Factory.Create<bool>(this, async showHidden => 264EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Model\DashboardDialogService.cs (1)
105return EventCallback.Factory.Create(receiver, callback);
Aspire.Dashboard.Components.Tests (5)
Controls\ResourceDetailsTests.cs (1)
850builder.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)
237builder.Add(component => component.CommandSelected, EventCallback.Factory.Create<CommandViewModel>(this, _ => Task.CompletedTask)); 239builder.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));