Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from Particular/interface
- Loading branch information
Showing
3 changed files
with
26 additions
and
6 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
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,19 @@ | ||
namespace NServiceBus | ||
{ | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Amazon.Lambda.Core; | ||
using Amazon.Lambda.SQSEvents; | ||
|
||
/// <summary> | ||
/// An NServiceBus endpoint hosted in AWS Lambda which does not receive messages automatically but only handles | ||
/// messages explicitly passed to it by the caller. | ||
/// </summary> | ||
public interface IAwsLambdaSQSEndpoint | ||
{ | ||
/// <summary> | ||
/// Processes a messages received from an SQS trigger using the NServiceBus message pipeline. | ||
/// </summary> | ||
Task Process(SQSEvent @event, ILambdaContext lambdaContext, CancellationToken cancellationToken = default); | ||
} | ||
} |