Skip to content

Instantly share code, notes, and snippets.

@reidev275
Last active August 29, 2015 14:03
Show Gist options
  • Save reidev275/fb3e4bea9ac69c359210 to your computer and use it in GitHub Desktop.
Save reidev275/fb3e4bea9ac69c359210 to your computer and use it in GitHub Desktop.
public class ImageProcessRequestConsumer : IConsumeAsync<ImageProcessRequest>
{
Command command = new Command("connectionString");
public async Task Consume(ImageProcessRequest message)
{
await command.ExecuteScalarAsync(
@"Insert into Images(TrackingNumber, Format, Image)
Values(@TrackingNumber, @Format, @Image)",
message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment