Skip to content

Latest commit

 

History

History
60 lines (36 loc) · 1005 Bytes

README.md

File metadata and controls

60 lines (36 loc) · 1005 Bytes

AWS Message Helper

Message Helper for AWS SNS/SQS. This nuget pack helps send and receive messages easily on AWS.

Installing

Package Manager

  Install-Package AWSMessageHelper

.NET CLI

  dotnet add package AWSMessageHelper

Using

  using AWSMessageHelper;

Setup AWS Credentials

  AWSMessageHelper.Config.SetupConnection(AccessKey, Secret, RegionEndpoint.EUCentral1);

Send a message to SNS Topic

  DemoMessageModel message = new DemoMessageModel(){
            UserId = "123",
            UserName = "Emre Ceyhan",
            Email = "[email protected]"};


    await AWSMessageHelper.MessageOps<DemoMessageModel>.Publish(message, "discount-found-sns");

Receive SQS message

    var message = AWSMessageHelper.MessageOps<DemoMessageModel>.GetMessage("notification-listen");

TODO

  • Add more examples
  • Publish as a nuget pack

Licensing

This project is licensed under MIT license.