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)
30public static EventType<CookieStore, CookieChangeEvent> ChangeEvent { get; } 193public ValueTask<IAsyncDisposable> AddEventListenerAsync<TEvent>(EventType<CookieStore, TEvent> type, Func<TEvent, Task> listener) 213public 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, 47public static EventType<TTarget, TEvent> Create<TTarget, [DynamicallyAccessedMembers(LinkerFlags.JsonSerialized)] TEvent>( 60public static EventType<TTarget, TEvent> Create<TTarget, [DynamicallyAccessedMembers(LinkerFlags.JsonSerialized)] TPayload, TEvent>(
Window.cs (2)
39public ValueTask<IAsyncDisposable> AddEventListenerAsync<TEvent>(EventType<Window, TEvent> type, Func<TEvent, Task> listener) 57public async ValueTask<IAsyncDisposable> AddEventListenerAsync<TEvent>(EventType<Window, TEvent> type, Func<TEvent, Task> listener, CancellationToken cancellationToken)
WindowWebStorageExtensions.cs (2)
11private static readonly EventType<Window, StorageEvent> _storageEvent = EventTypes.Create<Window, StorageEventPayload, StorageEvent>( 22public static EventType<Window, StorageEvent> StorageEvent => _storageEvent;