/// <summary>
 /// Initializes a new instance of the <see cref="MappingEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="mapper">The mapper.</param>
 /// <param name="topicConvention">The topic convention which overrides the default behavior.</param>
 /// <param name="typeProvider">The destination event argument type provider which overrides the default.</param>
 protected MappingEventBrokerExtension(IMapper mapper, ITopicConvention topicConvention, IDestinationEventArgsTypeProvider typeProvider)
 {
     this.TopicConvention = topicConvention;
     this.Topics = new EventTopicCollection();
     this.Action = (source, target, publication, sender, args) => { };
     this.Mapper = mapper;
     this.TypeProvider = typeProvider;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MappingEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="mapper">The mapper.</param>
 /// <param name="topicConvention">The topic convention which overrides the default behavior.</param>
 /// <param name="typeProvider">The destination event argument type provider which overrides the default.</param>
 protected MappingEventBrokerExtension(IMapper mapper, ITopicConvention topicConvention, IDestinationEventArgsTypeProvider typeProvider)
 {
     this.TopicConvention = topicConvention;
     this.Topics = new EventTopicCollection();
     this.Action = ctx => { };
     this.Mapper = mapper;
     this.TypeProvider = typeProvider;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MappingEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="mapper">The mapper.</param>
 /// <param name="topicConvention">The topic convention which overrides the default behavior.</param>
 /// <param name="typeProvider">The destination event argument type provider which overrides the default.</param>
 protected MappingEventBrokerExtension(IMapper mapper, ITopicConvention topicConvention, IDestinationEventArgsTypeProvider typeProvider)
 {
     this.TopicConvention = topicConvention;
     this.Topics          = new EventTopicCollection();
     this.Action          = ctx => { };
     this.Mapper          = mapper;
     this.TypeProvider    = typeProvider;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MappingEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="mapper">The mapper.</param>
 /// <param name="topicConvention">The topic convention which overrides the default behavior.</param>
 /// <param name="typeProvider">The destination event argument type provider which overrides the default.</param>
 protected MappingEventBrokerExtension(IMapper mapper, ITopicConvention topicConvention, IDestinationEventArgsTypeProvider typeProvider)
 {
     this.TopicConvention = topicConvention;
     this.Topics          = new EventTopicCollection();
     this.Action          = (source, target, publication, sender, args) => { };
     this.Mapper          = mapper;
     this.TypeProvider    = typeProvider;
 }
 public TestableAutoMapperEventBrokerExtension(IMapper mapper, ITopicConvention topicConvention, IDestinationEventArgsTypeProvider typeProvider)
     : base(mapper, topicConvention, typeProvider)
 {
 }
 public TestableAutoMapperEventBrokerExtension(IMapper mapper, ITopicConvention topicConvention, IDestinationEventArgsTypeProvider typeProvider)
     : base(mapper, topicConvention, typeProvider)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AutoMapperEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="topicConvention">The topic convention which overrides the default behavior.</param>
 /// <param name="typeProvider">The destination event argument type provider.</param>
 public AutoMapperEventBrokerExtension(ITopicConvention topicConvention, IDestinationEventArgsTypeProvider typeProvider)
     : base(new AutoMapperMapper(), topicConvention, typeProvider)
 {
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AutoMapperEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="topicConvention">The topic convention which overrides the default behavior.</param>
 /// <param name="typeProvider">The destination event argument type provider.</param>
 public AutoMapperEventBrokerExtension(ITopicConvention topicConvention, IDestinationEventArgsTypeProvider typeProvider)
     : base(new AutoMapperMapper(), topicConvention, typeProvider)
 {
 }