Skip to content

Instantly share code, notes, and snippets.

@TravisTheTechie
TravisTheTechie / gist:1906347
Created February 25, 2012 03:59 — forked from logicbomb/gist:1905604
MassTransit Bug
public interface ICommandPublisher
{
void Publish<T>(T command) where T : ICommand;
}
public class MassTransitCommandPublisher : ICommandPublisher, ILoggingSource
{
public void Publish<T>(T command) where T : ICommand
{
this.Debug("Publishing command {0}", command.GetType().Name);
@TravisTheTechie
TravisTheTechie / Program.cs
Created July 20, 2013 13:45
UseSubscriptionService() new usage
class Program
{
static void Main(string[] args)
{
Bus.Initialize(sbc =>
{
sbc.ReceiveFrom("msmq://localhost/queue");
sbc.UseMsmq();
sbc.UseSubscriptionService("msmq://localhost/mt_subscriptions");
});
var pathBinding = new Binding()
{
Source = "M 12.5,3.5 a 22.5,22.5 0 0,1 0,43 a 22.5,22.5 0 1,0 0,-43 z"
};
var newPath = new Path
{
Height = height,
Width = width,
Stretch = Stretch.Uniform
};