18 references to On
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnectionExtensions.cs (2)
17return hubConnection.On(methodName, parameterTypes, static (parameters, state) => 213return hubConnection.On(methodName, parameterTypes, (parameters, state) =>
Microsoft.AspNetCore.SignalR.Client.Tests (16)
HubClientProxyGeneratorTests.cs (12)
75.Setup(x => x.On( 83.Setup(x => x.On( 91.Setup(x => x.On( 99.Setup(x => x.On( 126.Setup(x => x.On( 134.Setup(x => x.On( 142.Setup(x => x.On( 150.Setup(x => x.On( 179.Setup(x => x.On( 195.Setup(x => x.On( 211.Setup(x => x.On( 227.Setup(x => x.On(
HubConnectionTests.cs (4)
850mockConnection.Setup(c => c.On(It.IsAny<string>(), It.IsAny<Type[]>(), It.IsAny<Func<object[], object, Task>>(), It.IsAny<object>())); 862_ = hubConnection.On("someMethod2", new Type[] { typeof(int) }, (args, obj) => Task.CompletedTask, 2); 871mockConnection.Verify(c => c.On("someMethod", It.IsAny<Type[]>(), It.IsAny<Func<object[], object, Task>>(), It.IsAny<object>()), Times.Once); 872mockConnection.Verify(c => c.On("someMethod2", It.IsAny<Type[]>(), It.IsAny<Func<object[], object, Task>>(), 2), Times.Once);