Created
August 30, 2012 10:51
-
-
Save speier/3526211 to your computer and use it in GitHub Desktop.
ServiceStack MQ mockup
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
[Auth] | |
public class ReportService : RestServiceBase<Report> | |
{ | |
public IReportRepository Repository { get; set; } | |
public override object OnGet(Report request) | |
{ | |
using (var producer = MessageFactory.CreateMessageProducer()) | |
{ | |
producer.Publish(request); | |
} | |
return Repository.GetById(request.Id); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment