bleh
This commit is contained in:
parent
7921cf5e95
commit
62e4ec82da
|
|
@ -15,4 +15,6 @@ public class SignalRTags : AcSignalRTags
|
||||||
public const int AddTransferAsync = 8;
|
public const int AddTransferAsync = 8;
|
||||||
public const int DeleteTransferAsync = 9;
|
public const int DeleteTransferAsync = 9;
|
||||||
public const int GetCompaniesAsync = 10;
|
public const int GetCompaniesAsync = 10;
|
||||||
|
public const int UpdateCompanyAsync = 11;
|
||||||
|
public const int CreateCompanyAsync = 12;
|
||||||
}
|
}
|
||||||
|
|
@ -84,6 +84,14 @@ public class DevAdminSignalRHub(AdminDal adminDal, ServiceProviderAPIController
|
||||||
await ResponseToCaller(messageTag, new SignalResponseJsonMessage(SignalResponseStatus.Success, await serviceProviderAPIController.GetServiceProviders()), requestId);
|
await ResponseToCaller(messageTag, new SignalResponseJsonMessage(SignalResponseStatus.Success, await serviceProviderAPIController.GetServiceProviders()), requestId);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
case SignalRTags.CreateCompanyAsync:
|
||||||
|
|
||||||
|
//var company = message!.MessagePackTo<SignalPostJsonDataMessage<Company>>().PostData;
|
||||||
|
|
||||||
|
//await serviceProviderAPIController.CreateServiceProvider(company);
|
||||||
|
//await ResponseToCaller(messageTag, new SignalResponseMessage<string>(SignalResponseStatus.Success, company.ToJson()), requestId);
|
||||||
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
_logger.Error($"Server OnReceiveMessage; messageTag not found! messageTag: {messageTag}");
|
_logger.Error($"Server OnReceiveMessage; messageTag not found! messageTag: {messageTag}");
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -167,7 +167,7 @@ namespace TIAMWebApp.Shared.Application.Services
|
||||||
//14.
|
//14.
|
||||||
public async Task<Company> UpdateServiceProviderAsync(Company company)
|
public async Task<Company> UpdateServiceProviderAsync(Company company)
|
||||||
{
|
{
|
||||||
var result = await _devAdminSignalClient.UpdateAsync(SignalRTags.UpdateCompanyAsync, company);
|
var result = await _devAdminSignalClient.PostDataAsync(SignalRTags.UpdateCompanyAsync, company);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue