58 references to Factory
Aspire.Dashboard (20)
Components\Controls\ResourceActions.razor.cs (1)
79EventCallback.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 (3)
165dialogParameters.OnDialogResult = EventCallback.Factory.Create<DialogResult>(this, async dialogResult => 226dialogParameters.OnDialogResult = EventCallback.Factory.Create<DialogResult>(this, async dialogResult => 259dialogParameters.OnDialogResult = EventCallback.Factory.Create<DialogResult>(this, async dialogResult =>
Components\Layout\AspirePageContentLayout.razor.cs (1)
97OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, async () =>
Components\Layout\MainLayout.razor.cs (4)
336OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, _ => HandleDialogClose(GetVisibleReturnFocusElementId(returnFocusElementId, HelpButtonId))) 394OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, _ => HandleDialogClose()) 418OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, _ => HandleDialogClose(GetVisibleReturnFocusElementId(returnFocusElementId, SettingsButtonId))) 443OnDialogClosing = EventCallback.Factory.Create<IDialogInstance>(this, _ => HandleDialogClose())
Components\Pages\ConsoleLogs.razor.cs (3)
746EventCallback.Factory.Create<bool>(this, async 791EventCallback.Factory.Create(this, () => 796EventCallback.Factory.Create<CommandViewModel>(this, ExecuteResourceCommandAsync),
Components\Pages\Resources.razor.cs (5)
204_onToggleCollapseAllCallback = EventCallback.Factory.Create(this, OnToggleCollapseAll); 205_onToggleResourceTypeCallback = EventCallback.Factory.Create(this, OnToggleResourceType); 542EventCallback.Factory.Create<bool>( 657EventCallback.Factory.Create(this, () => ShowResourceDetailsAsync(resource, focusElementId)), 658EventCallback.Factory.Create<CommandViewModel>(this, (command) => ExecuteResourceCommandAsync(resource, command)),
Model\DashboardDialogService.cs (1)
104return EventCallback.Factory.Create(receiver, callback);
Aspire.Dashboard.Components.Tests (8)
Controls\ChartFiltersTests.cs (1)
264builder.Add(p => p.OnDimensionValuesChanged, EventCallback.Factory.Create(this, onDimensionValuesChanged));
Controls\ResourceDetailsTests.cs (3)
759builder.Add(p => p.CommandSelected, EventCallback.Factory.Create<CommandViewModel>(this, c => capturedCommand = c)); 805builder.Add(p => p.CommandSelected, EventCallback.Factory.Create<CommandViewModel>(this, c => capturedCommand = c)); 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)
178builder.Add(component => component.CommandSelected, EventCallback.Factory.Create<CommandViewModel>(this, _ => Task.CompletedTask)); 180builder.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)
120__builder.AddAttribute(5, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 199__builder.AddAttribute(19, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 307__builder.AddAttribute(44, "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)
319__builder.AddAttribute(69, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 345__builder.AddAttribute(78, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 400__builder.AddAttribute(99, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 426__builder.AddAttribute(108, "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, 499var rowClick = OnRowClick.HasDelegate ? EventCallback.Factory.Create<MouseEventArgs>(this, () => OnRowClick.InvokeAsync(item)) : default; 525__builder.AddAttribute(44, "onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
QuickGrid.razor.cs (2)
240_currentPageItemsChanged = new(EventCallback.Factory.Create<PaginationState>(this, RefreshDataCoreAsync)); 253EventCallback.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));