Skip to content

Instantly share code, notes, and snippets.



Last active Jun 23, 2019
What would you like to do?
Use Memory Background MQ
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using ServiceStack;
using ServiceStack.Messaging;
namespace MyApp
Register Services you want available via MQ in your AppHost, e.g:
var mqServer = container.Resolve<IMessageService>();
public class ConfigureMq : IConfigureServices, IAfterInitAppHost
public void Configure(IServiceCollection services)
services.AddSingleton<IMessageService>(c => new BackgroundMqService());
public void AfterInit(IAppHost appHost)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment