forked from ddrilling/AsbCloudServer
TelemetryDataBaseController. Spelling in var names
This commit is contained in:
parent
f02346a24a
commit
1c01411ba9
@ -23,7 +23,7 @@ namespace AsbCloudWebApi.Controllers.SAUB
|
|||||||
private readonly ITelemetryDataService<TDto> telemetryDataService;
|
private readonly ITelemetryDataService<TDto> telemetryDataService;
|
||||||
private readonly IHubContext<TelemetryHub> telemetryHubContext;
|
private readonly IHubContext<TelemetryHub> telemetryHubContext;
|
||||||
|
|
||||||
public string SirnalRMethodGetDataName { get; protected set; } = "ReceiveData";
|
public string SignalRMethodGetDataName { get; protected set; } = "ReceiveData";
|
||||||
|
|
||||||
public TelemetryDataBaseController(
|
public TelemetryDataBaseController(
|
||||||
ITelemetryService telemetryService,
|
ITelemetryService telemetryService,
|
||||||
@ -55,7 +55,7 @@ namespace AsbCloudWebApi.Controllers.SAUB
|
|||||||
var idWell = telemetryService.GetIdWellByTelemetryUid(uid);
|
var idWell = telemetryService.GetIdWellByTelemetryUid(uid);
|
||||||
if (idWell is not null && dtos.Any())
|
if (idWell is not null && dtos.Any())
|
||||||
_ = Task.Run(() => telemetryHubContext.Clients.Group($"well_{idWell}")
|
_ = Task.Run(() => telemetryHubContext.Clients.Group($"well_{idWell}")
|
||||||
.SendAsync(SirnalRMethodGetDataName, dtos), CancellationToken.None);
|
.SendAsync(SignalRMethodGetDataName, dtos), CancellationToken.None);
|
||||||
|
|
||||||
return Ok();
|
return Ok();
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ namespace AsbCloudWebApi.Controllers.SAUB
|
|||||||
wellService,
|
wellService,
|
||||||
telemetryHubContext)
|
telemetryHubContext)
|
||||||
{
|
{
|
||||||
SirnalRMethodGetDataName = "ReceiveDataSaub";
|
SignalRMethodGetDataName = "ReceiveDataSaub";
|
||||||
telemetryDataSaubService = telemetryDataService;
|
telemetryDataSaubService = telemetryDataService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ namespace AsbCloudWebApi.Controllers.SAUB
|
|||||||
wellService,
|
wellService,
|
||||||
telemetryHubContext)
|
telemetryHubContext)
|
||||||
{
|
{
|
||||||
SirnalRMethodGetDataName = "ReceiveDataSpin";
|
SignalRMethodGetDataName = "ReceiveDataSpin";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user