https://github.com/sklose/elasticbeanstalkmiddleware
A middleware for a ASP.NET vNext worker in AWS Elastic Beanstalk
https://github.com/sklose/elasticbeanstalkmiddleware
Last synced: 7 months ago
JSON representation
A middleware for a ASP.NET vNext worker in AWS Elastic Beanstalk
- Host: GitHub
- URL: https://github.com/sklose/elasticbeanstalkmiddleware
- Owner: sklose
- License: apache-2.0
- Created: 2015-03-31T01:11:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-05T21:52:03.000Z (over 10 years ago)
- Last Synced: 2024-04-29T21:42:04.140Z (over 1 year ago)
- Language: C#
- Size: 641 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ElasticBeanstalkMiddleware
A middleware for a ASP.NET vNext worker in AWS Elastic Beanstalk[](https://travis-ci.org/sklose/ElasticBeanstalkMiddleware)
[](https://ci.appveyor.com/project/sklose/elasticbeanstalkmiddleware)# Quick Start
Add NuGet package ElasticBeanstalkMiddleware to your ASP.NET vNext application. A simple implementation:```csharp
public class Startup
{
public void Configure(IBuilder app)
{
app.RunElasticBeanstalkWorker(
new EbOptions { Dispatcher = new MessageDispatcher() });
}
}public class MessageDispatcher : IMessageDispatcher
{
public void Dispatch(SqsMessage message)
{
Console.WriteLine("Received a new message to process");
}
}
```