diff --git a/src/Altinn.App.Core/Altinn.App.Core.csproj b/src/Altinn.App.Core/Altinn.App.Core.csproj index 8ed8f4364..13e8b9757 100644 --- a/src/Altinn.App.Core/Altinn.App.Core.csproj +++ b/src/Altinn.App.Core/Altinn.App.Core.csproj @@ -5,6 +5,7 @@ This class library holds all the core features used by a standard Altinn 3 App. + ALTINNAPP0200 @@ -18,7 +19,7 @@ - + diff --git a/src/Altinn.App.Core/Features/Correspondence/CorrespondenceClient.cs b/src/Altinn.App.Core/Features/Correspondence/CorrespondenceClient.cs index 8c9afcb1e..ad3cfccb9 100644 --- a/src/Altinn.App.Core/Features/Correspondence/CorrespondenceClient.cs +++ b/src/Altinn.App.Core/Features/Correspondence/CorrespondenceClient.cs @@ -1,4 +1,5 @@ using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; using System.Net; using System.Net.Http.Headers; using System.Text.Json; @@ -16,6 +17,7 @@ namespace Altinn.App.Core.Features.Correspondence; /// +[Experimental("ALTINNAPP0200")] internal sealed class CorrespondenceClient : ICorrespondenceClient { private readonly ILogger _logger; @@ -41,6 +43,7 @@ public CorrespondenceClient( } /// + [Experimental(diagnosticId: "ALTINNAPP0200")] public async Task Send( SendCorrespondencePayload payload, CancellationToken cancellationToken = default @@ -90,6 +93,7 @@ public async Task Send( } /// + [Experimental(diagnosticId: "ALTINNAPP0200")] public async Task GetStatus( GetCorrespondenceStatusPayload payload, CancellationToken cancellationToken = default diff --git a/src/Altinn.App.Core/Features/Correspondence/ICorrespondenceClient.cs b/src/Altinn.App.Core/Features/Correspondence/ICorrespondenceClient.cs index 5211ccfc1..82866fa43 100644 --- a/src/Altinn.App.Core/Features/Correspondence/ICorrespondenceClient.cs +++ b/src/Altinn.App.Core/Features/Correspondence/ICorrespondenceClient.cs @@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using Altinn.App.Core.Features.Correspondence.Models; namespace Altinn.App.Core.Features.Correspondence; @@ -6,6 +7,7 @@ namespace Altinn.App.Core.Features.Correspondence; ///

Contains logic for interacting with the correspondence message service.

///

The use of this client requires Maskinporten scopes altinn:correspondence.write and altinn:serviceowner.

/// +[Experimental(diagnosticId: "ALTINNAPP0200")] public interface ICorrespondenceClient { /// diff --git a/src/Altinn.App.Core/Features/Correspondence/Models/GetCorrespondenceStatusResponse.cs b/src/Altinn.App.Core/Features/Correspondence/Models/GetCorrespondenceStatusResponse.cs index 8177fa5ca..ebcc41821 100644 --- a/src/Altinn.App.Core/Features/Correspondence/Models/GetCorrespondenceStatusResponse.cs +++ b/src/Altinn.App.Core/Features/Correspondence/Models/GetCorrespondenceStatusResponse.cs @@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization; using Altinn.App.Core.Models; @@ -6,6 +7,7 @@ namespace Altinn.App.Core.Features.Correspondence.Models; /// /// Response after a successful request. /// +[Experimental(diagnosticId: "ALTINNAPP0200")] public sealed record GetCorrespondenceStatusResponse { /// diff --git a/src/Altinn.App.Core/Features/Correspondence/Models/SendCorrespondenceResponse.cs b/src/Altinn.App.Core/Features/Correspondence/Models/SendCorrespondenceResponse.cs index 2a789ed7a..7e83bad55 100644 --- a/src/Altinn.App.Core/Features/Correspondence/Models/SendCorrespondenceResponse.cs +++ b/src/Altinn.App.Core/Features/Correspondence/Models/SendCorrespondenceResponse.cs @@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization; namespace Altinn.App.Core.Features.Correspondence.Models; @@ -5,6 +6,7 @@ namespace Altinn.App.Core.Features.Correspondence.Models; /// /// Response after a successful request. /// +[Experimental(diagnosticId: "ALTINNAPP0200")] public sealed record SendCorrespondenceResponse { /// diff --git a/test/Altinn.App.Core.Tests/Altinn.App.Core.Tests.csproj b/test/Altinn.App.Core.Tests/Altinn.App.Core.Tests.csproj index 807c77732..013f2529f 100644 --- a/test/Altinn.App.Core.Tests/Altinn.App.Core.Tests.csproj +++ b/test/Altinn.App.Core.Tests/Altinn.App.Core.Tests.csproj @@ -10,7 +10,7 @@ enable true - $(NoWarn);CS1591;CS0618 + $(NoWarn);CS1591;CS0618;ALTINNAPP0200