Skip to content

Commit

Permalink
Obsolete FunctionEndpoint in favour of IFunctionEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasohlund committed Jun 18, 2024
1 parent 0980c04 commit 96ddb9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"NServiceBus.AzureFunctions.Worker.ServiceBus.Tests, PublicKey=00240000048000009400000006020000002400005253413100040000010001007f16e21368ff041183fab592d9e8ed37e7be355e93323147a1d29983d6e591b04282e4da0c9e18bd901e112c0033925eb7d7872c2f1706655891c5c9d57297994f707d16ee9a8f40d978f064ee1ffc73c0db3f4712691b23bf596f75130f4ec978cf78757ec034625a5f27e6bb50c618931ea49f6f628fd74271c32959efb1c5")]
namespace NServiceBus
{
[System.Obsolete("Use `IFunctionEndpoint` instead. Will be treated as an error from version 6.0.0. " +
"Will be removed in version 7.0.0.", false)]
public class FunctionEndpoint : NServiceBus.IFunctionEndpoint
{
public System.Threading.Tasks.Task Process(Azure.Messaging.ServiceBus.ServiceBusReceivedMessage message, Microsoft.Azure.Functions.Worker.ServiceBusMessageActions messageActions, Microsoft.Azure.Functions.Worker.FunctionContext functionContext, System.Threading.CancellationToken cancellationToken = default) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/// An NServiceBus endpoint hosted in Azure Function which does not receive messages automatically but only handles
/// messages explicitly passed to it by the caller.
/// </summary>
[ObsoleteEx(TreatAsErrorFromVersion = "6", RemoveInVersion = "7", ReplacementTypeOrMember = nameof(IFunctionEndpoint))]
public class FunctionEndpoint : IFunctionEndpoint
{
internal FunctionEndpoint(IStartableEndpointWithExternallyManagedContainer externallyManagedContainerEndpoint, ServerlessTransport serverlessTransport, IServiceProvider serviceProvider)
Expand Down

0 comments on commit 96ddb9d

Please sign in to comment.