17 instantiations of ExecutionAction
Microsoft.AspNetCore.Components.Tests (17)
82 references to ExecutionAction
Microsoft.AspNetCore.Components.Tests (82)
RendererTest.cs (82)
240[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
242[0] = new List<NestedAsyncComponent.ExecutionAction>
244NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnInit),
245NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnInitAsyncAsync, async:true),
246NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnParametersSet),
247NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnParametersSetAsyncAsync, async: true),
249[1] = new List<NestedAsyncComponent.ExecutionAction>
251NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnInit),
252NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnInitAsyncAsync, async:true),
253NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnParametersSet),
254NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnParametersSetAsyncAsync, async: true),
399[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
401[0] = new List<NestedAsyncComponent.ExecutionAction>
403NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnInit),
404NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnInitAsyncAsync, async:true),
405NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnParametersSet),
406NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnParametersSetAsyncAsync, async: true),
408[1] = new List<NestedAsyncComponent.ExecutionAction>
410NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnInit),
411NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnInitAsyncAsync),
412NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnParametersSet),
413NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnParametersSetAsyncAsync),
443[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
445[0] = new List<NestedAsyncComponent.ExecutionAction>
447NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnInit),
448NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnInitAsyncAsync, async:true),
449NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnParametersSet),
450NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnParametersSetAsyncAsync, async: true),
452[1] = new List<NestedAsyncComponent.ExecutionAction>
454NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnInit),
455NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnInitAsyncAsync, async:true),
456NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnParametersSet),
457NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnParametersSetAsyncAsync),
487[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
489[0] = new List<NestedAsyncComponent.ExecutionAction>
491NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnInit),
492NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnInitAsyncAsync, async:true),
493NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnParametersSet),
494NestedAsyncComponent.ExecutionAction.On(0, NestedAsyncComponent.EventType.OnParametersSetAsyncAsync, async: true),
496[1] = new List<NestedAsyncComponent.ExecutionAction>
498NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnInit),
499NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnInitAsyncAsync, async:true),
500NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnParametersSet),
501NestedAsyncComponent.ExecutionAction.On(1, NestedAsyncComponent.EventType.OnParametersSetAsyncAsync, async:true),
503[2] = new List<NestedAsyncComponent.ExecutionAction>
505NestedAsyncComponent.ExecutionAction.On(2, NestedAsyncComponent.EventType.OnInit),
506NestedAsyncComponent.ExecutionAction.On(2, NestedAsyncComponent.EventType.OnInitAsyncAsync, async:true),
507NestedAsyncComponent.ExecutionAction.On(2, NestedAsyncComponent.EventType.OnParametersSet),
508NestedAsyncComponent.ExecutionAction.On(2, NestedAsyncComponent.EventType.OnParametersSetAsyncAsync, async:true),
510[3] = new List<NestedAsyncComponent.ExecutionAction>
512NestedAsyncComponent.ExecutionAction.On(3, NestedAsyncComponent.EventType.OnInit),
513NestedAsyncComponent.ExecutionAction.On(3, NestedAsyncComponent.EventType.OnInitAsyncAsync, async:true),
514NestedAsyncComponent.ExecutionAction.On(3, NestedAsyncComponent.EventType.OnParametersSet),
515NestedAsyncComponent.ExecutionAction.On(3, NestedAsyncComponent.EventType.OnParametersSetAsyncAsync, async:true),
3554[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3587[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3620[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3654[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3751[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3753[0] = Array.Empty<NestedAsyncComponent.ExecutionAction>(),
3754[1] = new List<NestedAsyncComponent.ExecutionAction>
3766[2] = new List<NestedAsyncComponent.ExecutionAction>
3809[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3811[0] = Array.Empty<NestedAsyncComponent.ExecutionAction>(),
3812[1] = new List<NestedAsyncComponent.ExecutionAction>
3823[2] = new List<NestedAsyncComponent.ExecutionAction>
3864[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3918[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
4048[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
4082[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
4119[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
5701[Parameter] public IDictionary<int, IList<ExecutionAction>> EventActions { get; set; }
5711if (TryGetEntry(EventType.OnInit, out var entry))
5721if (TryGetEntry(EventType.OnInitAsyncSync, out var entrySync))
5727else if (TryGetEntry(EventType.OnInitAsyncAsync, out var entryAsync))
5736if (TryGetEntry(EventType.OnParametersSet, out var entry))
5747if (TryGetEntry(EventType.OnParametersSetAsyncSync, out var entrySync))
5753else if (TryGetEntry(EventType.OnParametersSetAsyncAsync, out var entryAsync))
5768if (TryGetEntry(EventType.OnAfterRenderAsyncSync, out var entrySync))
5774if (TryGetEntry(EventType.OnAfterRenderAsyncAsync, out var entryAsync))
5781private bool TryGetEntry(EventType eventType, out ExecutionAction entry)
5802public static ExecutionAction On(int id, EventType @event, bool async = false)