Created
October 6, 2020 13:03
-
-
Save mgjam/09d46d3f92b9ac56b482054e32e657a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class MyService | |
{ | |
void ProcessData(SQSEvent event) | |
{ | |
var data = Deserialize<MyData>(event.Body); | |
ProcessData(data); | |
} | |
} | |
class MyHandler | |
{ | |
void Handle(SQSEvent event) | |
{ | |
var service = new MyService(); | |
service.ProcessData(event); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment