90 references to Factory
Aspire.Dashboard (49)
Components\Controls\ApplicationSummary.razor.cs (2)
646EventCallback.Factory.Create(this, () => 651EventCallback.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\Controls\ResourceActions.razor.cs (1)
68EventCallback.Factory.Create(this, () => OnViewDetails.InvokeAsync(_menuButton?.MenuButtonId)),
Components\Controls\SpanActions.razor.cs (1)
38EventCallback.Factory.Create(this, () => OnViewDetails.InvokeAsync(_menuButton?.MenuButtonId)),
Components\Controls\StructuredLogActions.razor.cs (1)
34EventCallback.Factory.Create(this, () => OnViewDetails.InvokeAsync(_menuButton?.MenuButtonId)));
Components\Interactions\InteractionsProvider.cs (2)
188dialogParameters.OnDialogResult = EventCallback.Factory.Create<DialogResult>(this, async dialogResult => 771return EventCallback.Factory.Create<DialogResult>(this, async dialogResult =>
Components\Layout\AspirePageContentLayout.razor.cs (1)
103OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, async () =>
Components\Layout\MainLayout.razor.cs (4)
424OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, _ => HandleDialogClose(GetVisibleReturnFocusElementId(returnFocusElementId, HelpButtonId))) 483OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, _ => HandleDialogClose(GetVisibleReturnFocusElementId(returnFocusElementId, SettingsButtonId))) 508OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, _ => HandleDialogClose()) 562OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, _ => HandleDialogClose(RunSelectButtonId))
Components\Layout\ResourcesLayout.razor.cs (7)
1803EventCallback.Factory.Create<bool>(this, value => 1965(resource, command) => EventCallback.Factory.Create(this, () => ExecuteResourceCommandAsync(resource, command)).InvokeAsync()); 1989EventCallback.Factory.Create<CommandViewModel>(this, command => ExecuteResourceCommandAsync(resource, command)), 2112click = EventCallback.Factory.Create<MouseEventArgs>(this, e => OnRowClickAsync(e, telemetryResourceName)); 3261Click = EventCallback.Factory.Create<MouseEventArgs>(layout, e => 3265ToggleCollapse = EventCallback.Factory.Create<MouseEventArgs>(layout, () => layout.OnToggleCollapseAsync(uniqueResourceName)); 3279callback = EventCallback.Factory.Create<MouseEventArgs>(_layout, () => _layout.ExecuteResourceCommandAsync(_resourceName, commandName));
Components\Legacy\Layout\LegacyMainLayout.razor.cs (4)
375OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, _ => HandleDialogClose(GetVisibleReturnFocusElementId(returnFocusElementId, HelpButtonId))) 433OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, _ => HandleDialogClose()) 457OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, _ => HandleDialogClose(GetVisibleReturnFocusElementId(returnFocusElementId, SettingsButtonId))) 482OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, _ => HandleDialogClose())
Components\Legacy\Pages\ConsoleLogs.razor.cs (3)
537EventCallback.Factory.Create<bool>(this, async 580EventCallback.Factory.Create(this, () => 585EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Legacy\Pages\Resources.razor.cs (5)
207_onToggleCollapseAllCallback = EventCallback.Factory.Create(this, OnToggleCollapseAll); 208_onToggleResourceTypeCallback = EventCallback.Factory.Create(this, OnToggleResourceType); 606EventCallback.Factory.Create<bool>( 721EventCallback.Factory.Create(this, () => ShowResourceDetailsAsync(resource, focusElementId)), 722EventCallback.Factory.Create<CommandViewModel>(this, (command) => ExecuteResourceCommandAsync(resource, command)),
Components\Legacy\Pages\Terminals.razor.cs (3)
245EventCallback.Factory.Create<bool>(this, async showHidden => 263EventCallback.Factory.Create(this, () => NavigationManager.NavigateTo(DashboardUrls.ResourcesUrl(resource: resource.Name))), 264EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Pages\ConsoleLogs.razor.cs (3)
641EventCallback.Factory.Create<bool>(this, async 684EventCallback.Factory.Create(this, () => 689EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Pages\Resources.razor.cs (5)
211_onToggleCollapseAllCallback = EventCallback.Factory.Create(this, OnToggleCollapseAll); 212_onToggleResourceTypeCallback = EventCallback.Factory.Create(this, OnToggleResourceType); 631EventCallback.Factory.Create<bool>( 777EventCallback.Factory.Create(this, () => ShowResourceDetailsAsync(resource, focusElementId)), 778EventCallback.Factory.Create<CommandViewModel>(this, (command) => ExecuteResourceCommandAsync(resource, command)),
Components\Pages\Terminals.razor.cs (3)
275EventCallback.Factory.Create<bool>(this, async showHidden => 293EventCallback.Factory.Create(this, () => NavigationManager.NavigateTo(DashboardUrls.ResourceOverviewUrl(resource.Name))), 294EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Pages\TraceDetail.razor.cs (1)
560EventCallback.Factory.Create(_logPreview ?? (object)this, () => _logPreview?.Show(logEntry));
Model\DashboardDialogService.cs (1)
132return EventCallback.Factory.Create(receiver, callback);
Aspire.Dashboard.Components.Tests (11)
Controls\AspireMenuTests.cs (1)
206builder.Add(p => p.OpenChanged, EventCallback.Factory.Create<bool>(this, openChanges.Add));
Controls\ChartFiltersTests.cs (2)
364builder.Add(p => p.ShowChangePerIntervalChanged, EventCallback.Factory.Create<bool>(this, value => changedValue = value)); 394builder.Add(p => p.OnDimensionValuesChanged, EventCallback.Factory.Create(this, onDimensionValuesChanged));
Controls\ResourceDetailsTests.cs (3)
825builder.Add(p => p.CommandSelected, EventCallback.Factory.Create<CommandViewModel>(this, c => capturedCommand = c)); 871builder.Add(p => p.CommandSelected, EventCallback.Factory.Create<CommandViewModel>(this, c => capturedCommand = c)); 916builder.Add(p => p.CommandSelected, EventCallback.Factory.Create<CommandViewModel>(this, _ => Task.CompletedTask));
Controls\TerminalDisconnectedBannerTests.cs (1)
190EventCallback.Factory.Create(this, () =>
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 (3)
CompilerServices\RuntimeHelpers.cs (3)
36return EventCallback.Factory.Create<T>(receiver, callback); 53return EventCallback.Factory.Create<T>(receiver, callback); 70return EventCallback.Factory.Create<T>(receiver, callback);
Microsoft.AspNetCore.Components.AI (4)
Components\MessageInput.cs (3)
98EventCallback.Factory.Create<ChangeEventArgs>( 109EventCallback.Factory.Create<KeyboardEventArgs>(this, OnKeyDown)); 126EventCallback.Factory.Create(this, SubmitAsync));
Components\MessageList.cs (1)
171EventCallback.Factory.Create(this,
Microsoft.AspNetCore.Components.Media (2)
FileDownload.cs (2)
54context.Initialize(r => Element = r, EventCallback.Factory.Create(this, OnClickAsync)); 74builder.AddAttribute(4, "onclick", EventCallback.Factory.Create(this, OnClickAsync));
Microsoft.AspNetCore.Components.QuickGrid (12)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\ColumnBase_razor.g.cs (3)
129__builder.AddAttribute(6, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 208__builder.AddAttribute(20, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 325__builder.AddAttribute(46, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Paginator_razor.g.cs (4)
331__builder.AddAttribute(73, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 357__builder.AddAttribute(82, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 414__builder.AddAttribute(105, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 440__builder.AddAttribute(114, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\QuickGrid_razor.g.cs (3)
170__builder3.AddAttribute(13, "onclosecolumnoptions", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::System.EventArgs>(this, 506var rowClick = OnRowClick.HasDelegate ? EventCallback.Factory.Create<MouseEventArgs>(this, () => OnRowClick.InvokeAsync(item)) : default; 541__builder.AddAttribute(45, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
QuickGrid.razor.cs (2)
238_currentPageItemsChanged = new(EventCallback.Factory.Create<PaginationState>(this, RefreshDataCoreAsync)); 251EventCallback.Factory.Create<object?>(this, RefreshDataCoreAsync));
Microsoft.AspNetCore.Components.Web (9)
Forms\InputCheckbox.cs (1)
46builder.AddAttribute(8, "onchange", EventCallback.Factory.CreateBinder<bool>(this, __value => CurrentValue = __value, CurrentValue));
Forms\InputDate.cs (1)
93builder.AddAttribute(7, "onchange", EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));
Forms\InputHidden.cs (1)
32builder.AddAttribute(7, "onchange", EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));
Forms\InputNumber.cs (1)
62builder.AddAttribute(8, "onchange", EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));
Forms\InputRadioGroup.cs (1)
38var changeEventCallback = EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString);
Forms\InputSelect.cs (2)
51builder.AddAttribute(7, "onchange", EventCallback.Factory.CreateBinder<string?[]?>(this, SetCurrentValueAsStringArray, default)); 57builder.AddAttribute(9, "onchange", EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, default));
Forms\InputText.cs (1)
40builder.AddAttribute(6, "onchange", EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));
Forms\InputTextArea.cs (1)
40builder.AddAttribute(6, "onchange", EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));