MCPcopy Create free account
hub / github.com/aspnet/AzureSignalR-samples / Add

Method Add

aspnet-samples/AspNetForm/Database.cs:31–46  ·  view source on GitHub ↗
(string group, string message)

Source from the content-addressed store, hash-verified

29 }
30
31 public NotificationItem Add(string group, string message)
32 {
33 lock (_dict)
34 {
35 var item = new NotificationItem
36 {
37 Id = _nextId++,
38 Group = group,
39 SubmitAt = DateTime.UtcNow,
40 Message = message,
41 Status = "Submitted",
42 };
43 _dict.Add(item.Id, item);
44 return item;
45 }
46 }
47
48 public void SetProcessed(int id)
49 {

Callers 5

ListenGroupMethod · 0.45
AppendMethod · 0.45
btnSubmit_ClickMethod · 0.45
RegisterBundlesMethod · 0.45
JoinGroupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected