16 instantiations of EventComponent
Microsoft.AspNetCore.Components.Tests (16)
83 references to EventComponent
Microsoft.AspNetCore.Components.Tests (83)
RendererTest.cs (83)
546var component = new EventComponent
576var component = new EventComponent
604var component = new EventComponent
627var component = new EventComponent
650var component = new EventComponent
673var component = new EventComponent
699var component = new EventComponent
730var component = new EventComponent
759var component = new EventComponent
790builder.OpenComponent<EventComponent>(0);
800var nestedComponent = (EventComponent)nestedComponentFrame.Component;
831var component = new EventComponent
874var component = new EventComponent
917var component = new EventComponent
962builder.OpenComponent<EventComponent>(0);
972var nestedComponent = (EventComponent)nestedComponentFrame.Component;
1020builder.OpenComponent<EventComponent>(0);
1021builder.AddComponentParameter(1, nameof(EventComponent.OnClickAction), (Action)parentComponent.SomeMethod);
1061builder.OpenComponent<EventComponent>(0);
1062builder.AddComponentParameter(1, nameof(EventComponent.OnClickAction), (Action)(() =>
1103builder.OpenComponent<EventComponent>(0);
1104builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)parentComponent.SomeMethod));
1141builder.OpenComponent<EventComponent>(0);
1142builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)(() =>
1182builder.OpenComponent<EventComponent>(0);
1183builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Func<Task>)(() =>
1222builder.OpenComponent<EventComponent>(0);
1223builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action)parentComponent.SomeMethod));
1260builder.OpenComponent<EventComponent>(0);
1261builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action)(() =>
1301builder.OpenComponent<EventComponent>(0);
1302builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Func<Task>)(() =>
1340builder.OpenComponent<EventComponent>(0);
1341builder.AddComponentParameter(1, nameof(EventComponent.OnClickAction), (Action)(() =>
1373builder.OpenComponent<EventComponent>(0);
1374builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)(() =>
1407builder.OpenComponent<EventComponent>(0);
1408builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create(parentComponent, (Action<DerivedEventArgs>)((e) =>
1441builder.OpenComponent<EventComponent>(0);
1442builder.AddComponentParameter(1, nameof(EventComponent.OnClickAction), (Action)(() =>
1474builder.OpenComponent<EventComponent>(0);
1475builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)(() =>
1508builder.OpenComponent<EventComponent>(0);
1509builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create(parentComponent, (Action<DerivedEventArgs>)((e) =>
1543builder.OpenComponent<EventComponent>(0);
1544builder.AddComponentParameter(1, nameof(EventComponent.OnClickAction), (Action)(() =>
1576builder.OpenComponent<EventComponent>(0);
1577builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)(() =>
1610builder.OpenComponent<EventComponent>(0);
1611builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action<DerivedEventArgs>)((e) =>
1647builder.OpenComponent<EventComponent>(0);
1648builder.AddComponentParameter(1, nameof(EventComponent.OnClickAsyncAction), (Func<Task>)(async () =>
1683builder.OpenComponent<EventComponent>(0);
1684builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, async () =>
1720builder.OpenComponent<EventComponent>(0);
1721builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, async (e) =>
1758builder.OpenComponent<EventComponent>(0);
1759builder.AddComponentParameter(1, nameof(EventComponent.OnClickAsyncAction), (Func<Task>)(async () =>
1797builder.OpenComponent<EventComponent>(0);
1798builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, async () =>
1837builder.OpenComponent<EventComponent>(0);
1838builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, async (e) =>
1878builder.OpenComponent<EventComponent>(0);
1879builder.AddComponentParameter(1, nameof(EventComponent.OnClickAsyncAction), (Func<Task>)(async () =>
1916builder.OpenComponent<EventComponent>(0);
1917builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, async () =>
1955builder.OpenComponent<EventComponent>(0);
1956builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, async (e) =>
2629var component = new ConditionalParentComponent<EventComponent>
2634{ nameof(EventComponent.OnTest), origEventHandler }
2679var component = new EventComponent { OnTest = origEventHandler };
2721var component = new EventComponent { OnTest = origEventHandler };
2756var component = new ConditionalParentComponent<EventComponent>
2761{ nameof(EventComponent.OnTest), origEventHandler }
2807var component = new EventComponent { OnTest = origEventHandler };
2843EventComponent childComponent = null;
2847builder.OpenComponent<EventComponent>(1);
2848builder.AddComponentParameter(2, nameof(EventComponent.OnTest), new Action<EventArgs>(args =>
2860.Single(f => f.Component is EventComponent);
2862childComponent = (EventComponent)childComponentFrame.Component;
3488EventComponent component = null;