-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring message processing out of function endpoint
- Loading branch information
Showing
9 changed files
with
253 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...eBus.AzureFunctions.InProcess.ServiceBus/Serverless/TransportWrapper/IMessageProcessor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace NServiceBus.AzureFunctions.InProcess.ServiceBus | ||
{ | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Azure.Messaging.ServiceBus; | ||
using Microsoft.Azure.WebJobs.ServiceBus; | ||
|
||
interface IMessageProcessor | ||
{ | ||
Task ProcessNonAtomic( | ||
ServiceBusReceivedMessage message, | ||
CancellationToken cancellationToken = default); | ||
|
||
Task ProcessAtomic( | ||
ServiceBusReceivedMessage message, | ||
ServiceBusClient serviceBusClient, | ||
ServiceBusMessageActions messageActions, | ||
CancellationToken cancellationToken = default); | ||
} | ||
} |
44 changes: 0 additions & 44 deletions
44
...iceBus.AzureFunctions.InProcess.ServiceBus/Serverless/TransportWrapper/PipelineInvoker.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.