-
Notifications
You must be signed in to change notification settings - Fork 8
Added recognition of the client and recording his action. #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| public class PunsHub : Hub<IPunsClientHandler> | ||
| { | ||
| static List<string> Image =new List<string>(); | ||
| public static List<string> Images = new List<string>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Danger! Can be cross thread called. Use the thread safe collections.
| Clients.All.NumberOfUsers(Users.Size()); | ||
| Clients.All.Action(DateTime.Now.TimeOfDay,ActionType.Connecting.ToString(), id); | ||
| Clients.All.Users(Users.GetJson()); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This three calls Client.All can be aggregate in one.
| Users.ConnectedClients.Add(id,ip); | ||
| Clients.All.NumberOfUsers(Users.Size()); | ||
| Clients.All.Action(DateTime.Now.TimeOfDay,ActionType.Connecting.ToString(), id); | ||
| Clients.All.Users(Users.GetJson()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just pass user collection. Let the signalR to serialize.
| textarea { | ||
| max-width: 280px; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
styled! me gusta:)
Expanded our application by new features:
Paweł Kunicki