You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
549 B
19 lines
549 B
1 year ago
|
using Cloud_Manager.Models.CustomModels;
|
||
|
using Cloud_Manager.Models.Interfaces;
|
||
|
using Microsoft.AspNetCore.SignalR;
|
||
|
|
||
|
namespace Cloud_Manager.CloudHubs
|
||
|
{
|
||
|
public class SalesHub : Hub<ISalesHub>
|
||
|
{
|
||
|
public async Task JoinCompanyGroup(string a_companyId)
|
||
|
{
|
||
|
await Groups.AddToGroupAsync(Context.ConnectionId, a_companyId);
|
||
|
}
|
||
|
public async Task AddTransaction(string a_companyId, SaleItem a_sale)
|
||
|
{
|
||
|
await Clients.OthersInGroup(a_companyId).TransactionMade(a_sale);
|
||
|
}
|
||
|
}
|
||
|
}
|