public ConfigurationModel() { PublicationRouteConfiguration = new RouteConfiguration<IPublishInfo>(); PublicationRouteConfiguration.AddStrategy<MappingRouteInfoLookupStrategy<IPublishInfo>>(); PublicationRouteConfiguration.AddStrategy<DefaultPublicationRouteInfoLookupStrategy>(); ConsumeRouteConfiguration = new RouteConfiguration<IConsumeInfo>(); ConsumeRouteConfiguration.AddStrategy<MappingRouteInfoLookupStrategy<IConsumeInfo>>(); ConsumeRouteConfiguration.AddStrategy<DefaultSubscriptionRouteInfoLookupStrategy>(); DefaultSerializationStrategy = new BinarySerializationStrategy(); DefaultDeadLetterStrategy = new NullDeadLetterStrategy(); AutoSubscriptions = new List<AutoSubscription>(); ConnectionDownQueueStrategy = new ThrowingQueueStrategy<ConnectionUnavailableException>(); ReconnectionInterval = TimeSpan.FromSeconds(10); }
public ConfigurationModel() { PublishRouteConfiguration = new RouteConfiguration <IPublishInfo>(); PublishRouteConfiguration.AddStrategy <MappingRouteInfoLookupStrategy <IPublishInfo> >(); PublishRouteConfiguration.AddStrategy <DefaultPublishRouteInfoLookupStrategy>(); ConsumeRouteConfiguration = new RouteConfiguration <IConsumeInfo>(); ConsumeRouteConfiguration.AddStrategy <MappingRouteInfoLookupStrategy <IConsumeInfo> >(); ConsumeRouteConfiguration.AddStrategy <DefaultConsumeRouteInfoLookupStrategy>(); DefaultSerializationStrategy = new BinarySerializationStrategy(); DefaultDeadLetterStrategy = new NullDeadLetterStrategy(); AutoSubscriptions = new List <AutoSubscription>(); ConnectionDownQueueStrategy = new ThrowingQueueStrategy <ConnectionUnavailableException>(); ReconnectionInterval = TimeSpan.FromSeconds(10); }