2 instantiations of EventType
Microsoft.AspNetCore.Components.Platform (2)
EventType.cs (2)
51
=>
new
(name, (listeners, target, _, listener, cancellationToken) => listeners.AddAsync(target, name, shapesJson, listener, cancellationToken));
65
=>
new
(name, (listeners, target, owner, listener, cancellationToken) =>
10 references to EventType
Microsoft.AspNetCore.Components.Platform (10)
CookieStore.cs (3)
30
public static
EventType
<CookieStore, CookieChangeEvent> ChangeEvent { get; }
193
public ValueTask<IAsyncDisposable> AddEventListenerAsync<TEvent>(
EventType
<CookieStore, TEvent> type, Func<TEvent, Task> listener)
213
public async ValueTask<IAsyncDisposable> AddEventListenerAsync<TEvent>(
EventType
<CookieStore, TEvent> type, Func<TEvent, Task> listener, CancellationToken cancellationToken)
EventType.cs (3)
37
/// Creates <see cref="
EventType
{TTarget, TEvent}"/> instances. The event object types are known here,
47
public static
EventType
<TTarget, TEvent> Create<TTarget, [DynamicallyAccessedMembers(LinkerFlags.JsonSerialized)] TEvent>(
60
public static
EventType
<TTarget, TEvent> Create<TTarget, [DynamicallyAccessedMembers(LinkerFlags.JsonSerialized)] TPayload, TEvent>(
Window.cs (2)
39
public ValueTask<IAsyncDisposable> AddEventListenerAsync<TEvent>(
EventType
<Window, TEvent> type, Func<TEvent, Task> listener)
57
public async ValueTask<IAsyncDisposable> AddEventListenerAsync<TEvent>(
EventType
<Window, TEvent> type, Func<TEvent, Task> listener, CancellationToken cancellationToken)
WindowWebStorageExtensions.cs (2)
11
private static readonly
EventType
<Window, StorageEvent> _storageEvent = EventTypes.Create<Window, StorageEventPayload, StorageEvent>(
22
public static
EventType
<Window, StorageEvent> StorageEvent => _storageEvent;