This PR adds support for void as a return type for StreamingHub.
It is more efficient in cases where the client fires-and-forgets the request and the processing is synchronous on the server.
public interface IGreeterHub : IStreamingHub<IGreeterHub, IGreeterHubReceiver>
{
void Hello();
}
public class GreeterHub : StreamingHubBase<IGreeterHub, IGreeterHubReceiver>
{
private int _count;
public void Hello() => Interlocked.Increment(ref _count);
}
This PR adds support for
void
as a return type for StreamingHub. It is more efficient in cases where the client fires-and-forgets the request and the processing is synchronous on the server.