6 references to Create
Microsoft.AspNetCore.Components.Tests (6)
EventCallbackFactoryTest.cs (4)
322var callback = EventCallback.Factory.Create<string>(component, @delegate); 340var callback = EventCallback.Factory.Create<string>(anotherComponent, @delegate); 358var callback = EventCallback.Factory.Create<string>(anotherComponent, @delegate); 373var callback = EventCallback.Factory.Create<string>(component, (Action)null);
RendererTest.cs (2)
1223builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action)parentComponent.SomeMethod)); 1261builder.AddComponentParameter(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action)(() =>