=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -43,6 +43,7 @@ public class DisplayConfigService(
|
||||
/// Configurations for which the minimal display section cannot be resolved are excluded from the result.
|
||||
/// </summary>
|
||||
/// <returns>A task that represents the asynchronous operation. The task result contains a list of enriched <see cref="DisplayConfig"/> items, omitting any entries that could not be enriched.</returns>
|
||||
/// <!-- aidoc:v1 sig=fb4ed8e body=326606c -->
|
||||
public async Task<List<DisplayConfig>> GetAll()
|
||||
{
|
||||
var result = await displayConfigRepository.GetAll();
|
||||
@@ -62,6 +63,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="filter">The pagination filter containing the page number, page size, and any filtering criteria used to retrieve and paginate the display configurations.</param>
|
||||
/// <returns>A task that represents the asynchronous operation, containing a <see cref="PaginationResponse{T}"/> with the compact display configurations, current page metadata, and total document count.</returns>
|
||||
/// <!-- aidoc:v1 sig=002d362 body=84e79e3 -->
|
||||
public async Task<PaginationResponse<DisplayConfigMinimalResponse>> GetAllCompactPaginated(PaginationFilter filter)
|
||||
{
|
||||
var result = displayConfigRepository.GetAllPaginated(filter);
|
||||
@@ -89,6 +91,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="type">The display type used to filter the configurations.</param>
|
||||
/// <returns>A list of enriched display configurations; entries whose display section could not be resolved are omitted.</returns>
|
||||
/// <!-- aidoc:v1 sig=8122d6c body=df89bc5 -->
|
||||
public async Task<List<DisplayConfig>> GetByType(DisplayConfigEnums.DisplayType type)
|
||||
{
|
||||
var result = await displayConfigRepository.GetByType(type);
|
||||
@@ -109,6 +112,7 @@ public class DisplayConfigService(
|
||||
/// <param name="id">The unique identifier of the display configuration to retrieve.</param>
|
||||
/// <returns>The display configuration with the minimal display section applied.</returns>
|
||||
/// <exception cref="NotFoundException">Thrown when no display configuration exists for the specified <paramref name="id"/>.</exception>
|
||||
/// <!-- aidoc:v1 sig=4cfefba body=08ef01d -->
|
||||
public async Task<DisplayConfig> GetById(ObjectId id)
|
||||
{
|
||||
return await AddDisplaySectionMinimal(await displayConfigRepository.GetById(id)) ??
|
||||
@@ -122,6 +126,7 @@ public class DisplayConfigService(
|
||||
/// <param name="unitId">The unit identifier used to look up the default configuration.</param>
|
||||
/// <param name="displayType">The display type used to look up the default configuration.</param>
|
||||
/// <returns>The current configuration, the default configuration, the merged configuration, or null when neither is available.</returns>
|
||||
/// <!-- aidoc:v1 sig=0ea6132 body=a8d8a9b -->
|
||||
public async Task<DisplayConfig?> GetById(ObjectId? configId, ObjectId unitId,
|
||||
DisplayConfigEnums.DisplayType displayType)
|
||||
{
|
||||
@@ -160,6 +165,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="config">The display configuration to insert.</param>
|
||||
/// <returns>The inserted display configuration, or null if no entity was returned by the repository.</returns>
|
||||
/// <!-- aidoc:v1 sig=819b413 body=1c53329 -->
|
||||
public async Task<DisplayConfig?> InsertOne(DisplayConfig config)
|
||||
{
|
||||
await auditService.CreateAuditLogAsync(httpContextAccessor.HttpContext?.User!, null, config);
|
||||
@@ -171,6 +177,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="config">The DTO containing the hospital and display type used to build the new configuration entity.</param>
|
||||
/// <returns>The inserted <see cref="DisplayConfig"/> entity, or <c>null</c> if the repository did not return a result.</returns>
|
||||
/// <!-- aidoc:v1 sig=cbcb8f5 body=bb5bdb9 -->
|
||||
public async Task<DisplayConfig?> InsertOneMinimal(CreateDisplayConfigDto config)
|
||||
{
|
||||
DisplayConfig newDisplayConfig;
|
||||
@@ -198,6 +205,7 @@ public class DisplayConfigService(
|
||||
/// Inserts test records for the DisplayNurse and SmartDisplay display configuration types into the repository and returns the inserted DisplayNurse record.
|
||||
/// </summary>
|
||||
/// <returns>The inserted <see cref="DisplayConfig"/> instance of type DisplayNurse.</returns>
|
||||
/// <!-- aidoc:v1 sig=76d5040 body=e85a5cb -->
|
||||
public async Task<DisplayConfig> InsertOneTest()
|
||||
{
|
||||
var d = new DisplayNurse
|
||||
@@ -220,6 +228,7 @@ public class DisplayConfigService(
|
||||
/// <param name="newDisplayConfig">The new configuration payload, deserialized internally into the appropriate DTO based on its <c>Type</c>.</param>
|
||||
/// <returns>The updated <see cref="DisplayConfig"/> when the corresponding update succeeds; otherwise the method throws.</returns>
|
||||
/// <exception cref="NotFoundException">Thrown when the configuration's <c>Type</c> is not handled, or when the underlying update returns no result.</exception>
|
||||
/// <!-- aidoc:v1 sig=2b3fe79 body=c609b50 -->
|
||||
public async Task<DisplayConfig?> UpdateConfig(ObjectId displayConfigId, object newDisplayConfig)
|
||||
{
|
||||
var baseType = JsonConvert.DeserializeObject<DisplayConfigDto>(newDisplayConfig.ToString()!);
|
||||
@@ -273,6 +282,7 @@ public class DisplayConfigService(
|
||||
/// <param name="objectIdConfigDisplay">The unique identifier of the display configuration whose field list is being updated.</param>
|
||||
/// <param name="fields">The collection of fields to be associated with the display configuration.</param>
|
||||
/// <returns>A task that represents the asynchronous operation, containing a boolean value indicating whether the update was successful.</returns>
|
||||
/// <!-- aidoc:v1 sig=ef23768 body=bc5d2e7 -->
|
||||
public Task<bool> UpdateFieldList(ObjectId objectIdConfigDisplay, List<Field> fields)
|
||||
{
|
||||
return displayConfigRepository.UpdateFieldList(objectIdConfigDisplay, fields);
|
||||
@@ -285,6 +295,7 @@ public class DisplayConfigService(
|
||||
/// <param name="colorConfig">The new color configuration to apply to the display.</param>
|
||||
/// <returns>True if the color configuration was updated successfully; otherwise, false.</returns>
|
||||
/// <exception cref="NotFoundException">Thrown when the display configuration identified by <paramref name="objectIdConfigDisplay"/> cannot be found before or after the update.</exception>
|
||||
/// <!-- aidoc:v1 sig=c59a5d8 body=8b0bc38 -->
|
||||
public async Task<bool> UpdateConfigColor(ObjectId objectIdConfigDisplay, ColorConfig colorConfig)
|
||||
{
|
||||
var oldDisplayConfig = await displayConfigRepository.GetById(objectIdConfigDisplay) ??
|
||||
@@ -311,6 +322,7 @@ public class DisplayConfigService(
|
||||
/// <param name="headerConfig">The new header configuration to apply to the display configuration.</param>
|
||||
/// <returns>A task that represents the asynchronous operation. The task result is <c>true</c> if the update was successful; otherwise, <c>false</c>.</returns>
|
||||
/// <exception cref="NotFoundException">Thrown when the display configuration is not found before the update, or when the updated display configuration cannot be retrieved afterwards.</exception>
|
||||
/// <!-- aidoc:v1 sig=14b1151 body=bd5d30d -->
|
||||
public async Task<bool> UpdateHeaderConfig(ObjectId objectIdConfigDisplay, HeaderConfig headerConfig)
|
||||
{
|
||||
var oldDisplayConfig = await displayConfigRepository.GetById(objectIdConfigDisplay) ??
|
||||
@@ -330,6 +342,7 @@ public class DisplayConfigService(
|
||||
/// <param name="bannerItems">The list of banner items to set for the home banner.</param>
|
||||
/// <returns>A task that resolves to <c>true</c> if the update succeeds; otherwise, <c>false</c>.</returns>
|
||||
/// <exception cref="NotFoundException">Thrown when the display configuration cannot be found before or after the update.</exception>
|
||||
/// <!-- aidoc:v1 sig=cb31e5c body=ded0de7 -->
|
||||
public async Task<bool> UpdateSetHomeBanner(ObjectId objectIdConfigDisplay, List<BannerItem> bannerItems)
|
||||
{
|
||||
var oldDisplayConfig = await displayConfigRepository.GetById(objectIdConfigDisplay) ??
|
||||
@@ -348,6 +361,7 @@ public class DisplayConfigService(
|
||||
/// <param name="baseConfig">The display configuration containing the updated values, identified by its <see cref="DisplayConfig.Id"/>.</param>
|
||||
/// <returns>A task that represents the asynchronous operation. The result indicates whether the update was successful.</returns>
|
||||
/// <exception cref="NotFoundException">Thrown when the display configuration with the specified identifier does not exist before or after the update.</exception>
|
||||
/// <!-- aidoc:v1 sig=f59f75b body=9ad2987 -->
|
||||
public async Task<bool> UpdateBaseConfig(DisplayConfig baseConfig)
|
||||
{
|
||||
var oldDisplayConfig = await displayConfigRepository.GetById(baseConfig.Id) ??
|
||||
@@ -367,6 +381,7 @@ public class DisplayConfigService(
|
||||
/// <param name="name">The new hospital name to apply to the display configuration.</param>
|
||||
/// <returns>A task that resolves to <c>true</c> if the update was successful; otherwise, <c>false</c>.</returns>
|
||||
/// <exception cref="NotFoundException">Thrown when the display configuration identified by <paramref name="objectIdConfigDisplay"/> cannot be found before or after the update.</exception>
|
||||
/// <!-- aidoc:v1 sig=d760b75 body=888c314 -->
|
||||
public async Task<bool> UpdateDisplayConfigHospitalName(ObjectId objectIdConfigDisplay, string name)
|
||||
{
|
||||
var oldDisplayConfig = await displayConfigRepository.GetById(objectIdConfigDisplay) ??
|
||||
@@ -385,6 +400,7 @@ public class DisplayConfigService(
|
||||
/// <param name="objectIdConfigDisplay">The identifier of the display configuration to delete.</param>
|
||||
/// <returns>A task that resolves to <c>true</c> if the configuration was successfully deleted; otherwise, <c>false</c>.</returns>
|
||||
/// <exception cref="ConflictException">Thrown when no default configuration is found for the related display type, or when reassigning a display to the default configuration fails.</exception>
|
||||
/// <!-- aidoc:v1 sig=700a83c body=6b3dfef -->
|
||||
public async Task<bool> DeleteDisplayConfig(ObjectId objectIdConfigDisplay)
|
||||
{
|
||||
var displays = await displayService.Value.GetByConfigId(objectIdConfigDisplay);
|
||||
@@ -413,6 +429,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="objectIdConfigDisplay">The identifier of the configuration display whose locations are being retrieved.</param>
|
||||
/// <returns>A task that returns a list of <see cref="DisplayConfigLocationDto"/> items for the given configuration display.</returns>
|
||||
/// <!-- aidoc:v1 sig=252e572 body=b3e689c -->
|
||||
public async Task<List<DisplayConfigLocationDto>> GetDisplayConfigLocations(ObjectId objectIdConfigDisplay)
|
||||
{
|
||||
return await displayService.Value.GetDisplayConfigLocations(objectIdConfigDisplay);
|
||||
@@ -422,6 +439,7 @@ public class DisplayConfigService(
|
||||
/// Asynchronously retrieves a compact list of all display configurations from the repository.
|
||||
/// </summary>
|
||||
/// <returns>A task that represents the asynchronous operation, containing a list of <see cref="DisplayConfigMinimalResponse"/> objects representing the compact display configuration data.</returns>
|
||||
/// <!-- aidoc:v1 sig=c9c53b0 body=61092a4 -->
|
||||
public async Task<List<DisplayConfigMinimalResponse>> GetAllCompact()
|
||||
{
|
||||
return await displayConfigRepository.GetAllCompact();
|
||||
@@ -434,6 +452,7 @@ public class DisplayConfigService(
|
||||
/// <param name="configType">The display type of the configuration to create; determines which template subtype is expected and produced.</param>
|
||||
/// <param name="configHospital">The hospital to associate with the newly created configuration.</param>
|
||||
/// <returns>The inserted <see cref="DisplayConfig"/> when the template is found and matches the requested type; otherwise, <c>null</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=e4369ae body=d8b0ca1 -->
|
||||
public async Task<DisplayConfig?> InsertOneWithTemplate(string objectId,
|
||||
DisplayConfigEnums.DisplayType configType, string? configHospital)
|
||||
{
|
||||
@@ -491,6 +510,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="baseConfig">The card configuration to update.</param>
|
||||
/// <returns>True if the update was applied (repository reported changes); otherwise, false.</returns>
|
||||
/// <!-- aidoc:v1 sig=2fc94b7 body=dc034f3 -->
|
||||
public async Task<bool> UpdateCardConfig(CardConfig baseConfig)
|
||||
{
|
||||
var result = await displayCardConfigRepository.UpdateOne(baseConfig);
|
||||
@@ -520,6 +540,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="baseConfig">The card detail configuration to update, identified by its <c>Id</c>.</param>
|
||||
/// <returns>A task that resolves to <c>true</c> when the update affected one or more records; <c>false</c> when no changes were made.</returns>
|
||||
/// <!-- aidoc:v1 sig=0e8ea62 body=ea85ef1 -->
|
||||
public async Task<bool> UpdateDetailConfig(CardDetailsConfig baseConfig)
|
||||
{
|
||||
var result = await displayDetailConfigRepository.UpdateOne(baseConfig);
|
||||
@@ -535,6 +556,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="baseConfig">The chart configuration to be updated.</param>
|
||||
/// <returns>A task that resolves to <c>true</c> if the update changed at least one record; otherwise, <c>false</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=c679975 body=ad4b9cc -->
|
||||
public async Task<bool> UpdateChartConfig(ChartConfig baseConfig)
|
||||
{
|
||||
var result = await displayChartRepository.UpdateOne(baseConfig);
|
||||
@@ -548,6 +570,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="objectIdConfigDisplay">The object ID of the chart configuration display to delete.</param>
|
||||
/// <returns><c>true</c> if the chart configuration was successfully deleted; <c>false</c> if no matching configuration was found.</returns>
|
||||
/// <!-- aidoc:v1 sig=9d99eb7 body=79681f0 -->
|
||||
public async Task<bool> DeleteChartConfig(ObjectId objectIdConfigDisplay)
|
||||
{
|
||||
var res = await displayChartRepository.DeleteOne(objectIdConfigDisplay);
|
||||
@@ -565,6 +588,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="objectIdConfigChart">The unique identifier of the chart configuration to retrieve.</param>
|
||||
/// <returns>A task that represents the asynchronous operation. The task result contains the <see cref="ChartConfig"/> if found; otherwise, <c>null</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=7ec5c6d body=0fb37c4 -->
|
||||
public async Task<ChartConfig?> GetChartConfig(ObjectId objectIdConfigChart)
|
||||
{
|
||||
return await displayChartRepository.GetById(objectIdConfigChart);
|
||||
@@ -575,6 +599,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="updateDisplayConfigNameDto">The DTO containing the detail configuration to insert and, optionally, the ID of the display configuration to associate it with.</param>
|
||||
/// <returns>The newly inserted <see cref="CardDetailsConfig"/>, or <c>null</c> when no detail configuration is provided in the DTO.</returns>
|
||||
/// <!-- aidoc:v1 sig=68e8234 body=c2b345a -->
|
||||
public async Task<CardDetailsConfig?> InsertCardDetailConfig(CreateDisplayConfigCardDto updateDisplayConfigNameDto)
|
||||
{
|
||||
if (updateDisplayConfigNameDto.DetailConfig == null) return null;
|
||||
@@ -596,6 +621,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="updateDisplayConfigNameDto">The data transfer object containing the chart configuration to insert and, optionally, the target display configuration identifier.</param>
|
||||
/// <returns>The inserted <see cref="ChartConfig"/>, or <c>null</c> if the supplied chart configuration is <c>null</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=416a744 body=c958187 -->
|
||||
public async Task<ChartConfig?> InsertChartConfig(CreateDisplayConfigCardDto updateDisplayConfigNameDto)
|
||||
{
|
||||
if (updateDisplayConfigNameDto.ChartConfig == null) return null;
|
||||
@@ -616,6 +642,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="updateDisplayConfigNameDto">The DTO containing the card configuration to insert and, optionally, the display configuration id to associate it with.</param>
|
||||
/// <returns>The inserted <see cref="CardConfig"/>, or <c>null</c> when the provided card configuration is null.</returns>
|
||||
/// <!-- aidoc:v1 sig=148185d body=cda36fc -->
|
||||
public async Task<CardConfig?> InsertCardConfig(CreateDisplayConfigCardDto updateDisplayConfigNameDto)
|
||||
{
|
||||
if (updateDisplayConfigNameDto.CardConfig == null) return null;
|
||||
@@ -635,6 +662,7 @@ public class DisplayConfigService(
|
||||
/// Asynchronously retrieves all card configurations from the display card config repository.
|
||||
/// </summary>
|
||||
/// <returns>A task that represents the asynchronous operation, containing a list of all <see cref="CardConfig"/> entities.</returns>
|
||||
/// <!-- aidoc:v1 sig=5559d88 body=f0a2a43 -->
|
||||
public async Task<List<CardConfig>> GetCardConfigAll()
|
||||
{
|
||||
return await displayCardConfigRepository.GetAll();
|
||||
@@ -645,6 +673,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="id">The unique identifier of the card configuration to retrieve.</param>
|
||||
/// <returns>The matching <see cref="CardConfig"/> if found; otherwise, <c>null</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=5561120 body=747b0df -->
|
||||
public async Task<CardConfig?> GetCardConfigById(ObjectId id)
|
||||
{
|
||||
return await displayCardConfigRepository.GetById(id);
|
||||
@@ -656,6 +685,7 @@ public class DisplayConfigService(
|
||||
/// </summary>
|
||||
/// <param name="type">The display type used to look up the default configuration.</param>
|
||||
/// <returns>A <see cref="DisplayConfig"/> representing the default configuration for the specified type, or <see langword="null"/> if no default is found.</returns>
|
||||
/// <!-- aidoc:v1 sig=467920d body=17622e6 -->
|
||||
public async Task<DisplayConfig?> GetDefaultConfig(DisplayConfigEnums.DisplayType type)
|
||||
{
|
||||
return await displayConfigRepository.GetDefault(type);
|
||||
@@ -668,6 +698,7 @@ public class DisplayConfigService(
|
||||
/// <param name="unitId">The identifier of the unit whose default display configuration is being requested.</param>
|
||||
/// <param name="displayType">The display type used to filter the default configuration lookup.</param>
|
||||
/// <returns>A <see cref="DisplayConfig"/> instance if a default is found; otherwise, <c>null</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=1db1561 body=6a6c951 -->
|
||||
private async Task<DisplayConfig?> GetDefaultByUnitIdAndType(ObjectId unitId,
|
||||
DisplayConfigEnums.DisplayType displayType)
|
||||
{
|
||||
@@ -682,6 +713,7 @@ public class DisplayConfigService(
|
||||
/// <param name="displayConfig">The display configuration to augment with minimal display section data, or <see langword="null"/>.</param>
|
||||
/// <returns>The updated <see cref="DisplayConfig"/>, or <see langword="null"/> if the input was <see langword="null"/>.</returns>
|
||||
/// <exception cref="NotFoundException">Thrown when the display configuration cannot be found in the repository by its identifier.</exception>
|
||||
/// <!-- aidoc:v1 sig=ddfc93e body=861af41 -->
|
||||
private async Task<DisplayConfig?> AddDisplaySectionMinimal(DisplayConfig? displayConfig)
|
||||
{
|
||||
if (displayConfig == null) return null;
|
||||
@@ -715,6 +747,7 @@ public class DisplayConfigService(
|
||||
/// Updates the chart configuration to mark the specified entry as deleted by delegating to the display configuration repository.
|
||||
/// </summary>
|
||||
/// <param name="deletedId">The identifier of the chart configuration entry to mark as deleted.</param>
|
||||
/// <!-- aidoc:v1 sig=f32f258 body=1f20989 -->
|
||||
private async Task UpdateDeletedChartConfig(ObjectId deletedId)
|
||||
{
|
||||
await displayConfigRepository.UpdateDeletedChartConfig(deletedId);
|
||||
@@ -726,6 +759,7 @@ public class DisplayConfigService(
|
||||
/// <param name="displayConfigId">The identifier of the display configuration to which the chart ID will be associated. May be null.</param>
|
||||
/// <param name="resultId">The identifier of the chart result to add to the display configuration.</param>
|
||||
/// <returns>A task that represents the asynchronous operation. The task result contains a boolean indicating whether the chart ID was successfully added.</returns>
|
||||
/// <!-- aidoc:v1 sig=ffcdc08 body=2ef8f3d -->
|
||||
private async Task<bool> AddChartId(ObjectId? displayConfigId, ObjectId resultId)
|
||||
{
|
||||
var result = await displayConfigRepository.AddChartId(displayConfigId, resultId);
|
||||
@@ -738,6 +772,7 @@ public class DisplayConfigService(
|
||||
/// <param name="displayConfigId">The identifier of the display configuration to update, or null to skip.</param>
|
||||
/// <param name="resultId">The identifier of the result to associate with the card configuration, or null to skip.</param>
|
||||
/// <returns>A task that resolves to true if the update was successful; otherwise, false.</returns>
|
||||
/// <!-- aidoc:v1 sig=6b4fc3b body=b6c033c -->
|
||||
private async Task<bool> UpdateCardConfigId(ObjectId? displayConfigId, ObjectId? resultId)
|
||||
{
|
||||
var result = await displayConfigRepository.UpdateCardConfigId(displayConfigId, resultId);
|
||||
@@ -750,6 +785,7 @@ public class DisplayConfigService(
|
||||
/// <param name="displayConfigId">The display configuration identifier to associate with the result, or <c>null</c> if not specified.</param>
|
||||
/// <param name="resultId">The result identifier whose detail configuration should be updated, or <c>null</c> if not specified.</param>
|
||||
/// <returns>A task that resolves to <c>true</c> if the update was successful; otherwise, <c>false</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=e79ee9d body=4def5c3 -->
|
||||
private async Task<bool> UpdateDetailConfigId(ObjectId? displayConfigId, ObjectId? resultId)
|
||||
{
|
||||
var result = await displayConfigRepository.UpdateDetailConfigId(displayConfigId, resultId);
|
||||
@@ -764,6 +800,7 @@ public class DisplayConfigService(
|
||||
/// <param name="displayConfigId">The identifier of the display configuration whose change should be broadcast to related subscribers.</param>
|
||||
/// <param name="operationType">The type of operation performed on the configuration (e.g., create, update, delete) to convey to subscribers.</param>
|
||||
/// <param name="newDisplayConfig">The new display configuration payload to send to subscribers, or null if not applicable for the operation.</param>
|
||||
/// <!-- aidoc:v1 sig=e43b436 body=ea33ca3 -->
|
||||
private async void SendDisplayConfigBroadcast(ObjectId displayConfigId, OperationType operationType,
|
||||
object? newDisplayConfig)
|
||||
{
|
||||
@@ -793,6 +830,7 @@ public class DisplayConfigService(
|
||||
/// <param name="displayConfigId">The identifier of the display configuration used to look up the associated displays and to broadcast the global update.</param>
|
||||
/// <param name="newDisplayConfig">The new SmartDisplay configuration to propagate to subscribers, or null when not available.</param>
|
||||
/// <param name="oldDisplayConfig">The previous SmartDisplay configuration used to build the update payload, or null when not available.</param>
|
||||
/// <!-- aidoc:v1 sig=4dce3cf body=6f25e75 -->
|
||||
private async void SendSmartDisplayConfigBroadcast(ObjectId displayConfigId, SmartDisplay? newDisplayConfig,
|
||||
SmartDisplay? oldDisplayConfig)
|
||||
{
|
||||
@@ -827,6 +865,7 @@ public class DisplayConfigService(
|
||||
/// <param name="subscribers">The list of WebSocket subscribers that will receive the display configuration update messages.</param>
|
||||
/// <param name="oldDisplayDisplayConfig">The previous smart display configuration, or null if there is no prior configuration to compare against.</param>
|
||||
/// <param name="newDisplayDisplayConfig">The new smart display configuration whose values will be sent to subscribers.</param>
|
||||
/// <!-- aidoc:v1 sig=0563a96 body=4372a38 -->
|
||||
private void SendSmartDisplayConfigUpdate(List<WsSubscriber> subscribers,
|
||||
SmartDisplay? oldDisplayDisplayConfig, SmartDisplay? newDisplayDisplayConfig)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user