Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Last active July 14, 2024 17:39
Show Gist options
  • Save wullemsb/d7ce5acf3c8500b46ed4933d42a8b264 to your computer and use it in GitHub Desktop.
Save wullemsb/d7ce5acf3c8500b46ed4933d42a8b264 to your computer and use it in GitHub Desktop.
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureServices((hostContext, services) =>
{
services.AddMassTransit(x =>
{
x.UsingRabbitMq((context,cfg) =>
{
cfg.ConfigureEndpoints(context);
});
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment