1 write to Receiver
Microsoft.AspNetCore.Components (1)
EventCallbackOfT.cs (1)
28Receiver = receiver;
37 references to Receiver
Microsoft.AspNetCore.Components (8)
EventCallbackOfT.cs (8)
40internal bool RequiresExplicitReceiver => Receiver != null && !object.ReferenceEquals(Receiver, Delegate?.Target); 50if (Receiver == null) 55return Receiver.HandleEventAsync(new EventCallbackWorkItem(Delegate), arg); 67return new EventCallback(Receiver ?? Delegate?.Target as IHandleEvent, Delegate); 77=> HashCode.Combine(RuntimeHelpers.GetHashCode(Receiver), RuntimeHelpers.GetHashCode(Delegate)); 82&& ReferenceEquals(Receiver, other.Receiver)
Microsoft.AspNetCore.Components.Tests (29)
EventCallbackFactoryTest.cs (27)
106Assert.Same(component, callback.Receiver); 124Assert.Same(component, callback.Receiver); 142Assert.Same(anotherComponent, callback.Receiver); 157Assert.Same(component, callback.Receiver); 225Assert.Same(component, callback.Receiver); 258Assert.Same(component, callback.Receiver); 276Assert.Same(anotherComponent, callback.Receiver); 291Assert.Same(component, callback.Receiver); 310Assert.Same(component, callback.Receiver); 326Assert.Same(component, callback.Receiver); 344Assert.Same(component, callback.Receiver); 362Assert.Same(anotherComponent, callback.Receiver); 377Assert.Same(component, callback.Receiver); 393Assert.Same(component, callback.Receiver); 411Assert.Same(component, callback.Receiver); 426Assert.Same(component, callback.Receiver); 444Assert.Same(anotherComponent, callback.Receiver); 460Assert.Same(component, callback.Receiver); 478Assert.Same(component, callback.Receiver); 496Assert.Same(anotherComponent, callback.Receiver); 511Assert.Same(component, callback.Receiver); 527Assert.Same(component, callback.Receiver); 545Assert.Same(component, callback.Receiver); 563Assert.Same(anotherComponent, callback.Receiver); 578Assert.Same(component, callback.Receiver); 594Assert.Same(component, callback.Receiver); 610Assert.Same(component, callback.Receiver);
Rendering\RenderTreeBuilderTest.cs (2)
1323frame => AssertFrame.Attribute(frame, "attr", new EventCallback(callback.Receiver, callback.Delegate), 1)); 1668frame => AssertFrame.Attribute(frame, "attr", new EventCallback(callback.Receiver, callback.Delegate), 1));