radu-matei / websocket-manager

Real-Time library for ASP .NET Core
https://radu-matei.com/blog/real-time-aspnet-core/
MIT License
452 stars 183 forks source link

Added SendAsync templates for cleaner method calls. #59

Closed Henry00IS closed 6 years ago

Henry00IS commented 6 years ago

Instead of writing:

await Connection.SendAsync(new InvocationDescriptor { MethodName = "SendMessage", Arguments = new object[] { Connection.ConnectionId, "Hello World" } });

You can now type (up to 16 arguments) with templates:

await Connection.SendAsync("SendMessage", Connection.ConnectionId, "Hello World!");
Henry00IS commented 6 years ago

Conflicts have been resolved.