- Add ICredentialProtector/DataProtectorCredentialProtector using ASP.NET Core Data Protection - Register AddDataProtection + ICredentialProtector in Infrastructure DI - Update CameraCredentials XML comments to reference real protector - Add SetCredentialsAsync to CameraService with encryption - Update ICameraService interface
15 lines
775 B
C#
15 lines
775 B
C#
using Heimdall.Application.Common;
|
|
using Heimdall.Application.DTOs;
|
|
|
|
namespace Heimdall.Application.Services;
|
|
|
|
public interface ICameraService
|
|
{
|
|
Task<ServiceResult<CameraResponse>> CreateAsync(CreateCameraRequest request, CancellationToken ct);
|
|
Task<ServiceResult<CameraResponse>> GetByIdAsync(Guid id, CancellationToken ct);
|
|
Task<ServiceResult<PagedResult<CameraResponse>>> ListBySiteAsync(Guid siteId, int page, int pageSize, CancellationToken ct);
|
|
Task<ServiceResult<CameraResponse>> UpdateAsync(Guid id, UpdateCameraRequest request, CancellationToken ct);
|
|
Task<ServiceResult> DeleteAsync(Guid id, CancellationToken ct);
|
|
Task<ServiceResult> SetCredentialsAsync(Guid cameraId, Domain.Entities.CameraCredentials credentials, CancellationToken ct);
|
|
}
|