2 instantiations of AsyncDisposableComponent
Microsoft.AspNetCore.Components.Tests (2)
RendererTest.cs (2)
4839var rootComponent = new AsyncDisposableComponent 4966var component = new AsyncDisposableComponent
24 references to AsyncDisposableComponent
Microsoft.AspNetCore.Components.Tests (24)
RendererTest.cs (24)
2319builder.OpenComponent<AsyncDisposableComponent>(1); 2320builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(() => throw exception1)); 2353builder.OpenComponent<AsyncDisposableComponent>(1); 2354builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(() => default)); 2393builder.OpenComponent<AsyncDisposableComponent>(1); 2394builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(async () => { await tcs.Task; })); 2438builder.OpenComponent<AsyncDisposableComponent>(1); 2439builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(async () => { await tcs.Task; throw exception1; })); 2477builder.OpenComponent<AsyncDisposableComponent>(1); 2478builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(() => throw new TaskCanceledException())); 2512builder.OpenComponent<AsyncDisposableComponent>(1); 2515nameof(AsyncDisposableComponent.AsyncDisposeAction), 4273builder.OpenComponent<AsyncDisposableComponent>(1); 4274builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(() => { disposed = true; throw exception1; })); 4301builder.OpenComponent<AsyncDisposableComponent>(1); 4302builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(async () => { await tcs.Task; disposed = true; throw exception1; })); 4792builder.OpenComponent<AsyncDisposableComponent>(1); 4805.GetComponentFrames<AsyncDisposableComponent>().Single(); 4823Assert.True(((AsyncDisposableComponent)nestedAsyncDisposableComponentFrame.Component).Disposed); 4839var rootComponent = new AsyncDisposableComponent 4910builder.OpenComponent<AsyncDisposableComponent>(2); 4911builder.AddComponentParameter(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(async () => await exception2Tcs.Task)); 4921.GetComponentFrames<AsyncDisposableComponent>().Single(); 4966var component = new AsyncDisposableComponent