public void SetUp() { persistence = new InMemorySubscriptionPersistence(); channelGraph = new ChannelGraph { Name = TheNodeName }; channelGraph.AddReplyChannel("foo", "foo://replies".ToUri()); channelGraph.AddReplyChannel("bar", "bar://replies".ToUri()); theRepository = new SubscriptionRepository(channelGraph, persistence); }
public void Start() { var registry = Activator.CreateInstance(_registryType).As <FubuRegistry>(); _persistence = Subscriptions[registry.NodeName]; registry.Services.ReplaceService <ISubscriptionPersistence>(_persistence); registry.Services.ReplaceService(Settings); registry.AlterSettings <LightningQueueSettings>(x => x.Disabled = true); registry.ServiceBus.EnableInMemoryTransport(_replyUri); _runtime = registry.ToRuntime(); }
public void Start() { var registry = Activator.CreateInstance(_registryType).As <FubuTransportRegistry>(); registry.Services(x => { _persistence = Subscriptions[registry.NodeName]; x.ReplaceService <ISubscriptionPersistence>(_persistence); x.ReplaceService(Settings); }); registry.AlterSettings <LightningQueueSettings>(x => x.Disabled = true); registry.EnableInMemoryTransport(_replyUri); _runtime = FubuTransport.For(registry).StructureMap().Bootstrap(); }