/// <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;
 }
 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="MappingEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="mapper">The mapper.</param>
 /// <param name="typeProvider">The destination event argument type provider which overrides the default.</param>
 protected MappingEventBrokerExtension(IMapper mapper, IDestinationEventArgsTypeProvider typeProvider)
     : this(mapper, new DefaultTopicConvention(), typeProvider)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AutoMapperEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="mapper">The mapper.</param>
 /// <param name="typeProvider">The destination event argument type provider.</param>
 public AutoMapperEventBrokerExtension(IMapper mapper, IDestinationEventArgsTypeProvider typeProvider)
     : base(mapper, 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)
 {
 }
 /// <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="AutoMapperEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="typeProvider">The destination event argument type provider.</param>
 /// <remarks>
 /// Uses the <see cref="DefaultTopicConvention"/>.
 /// </remarks>
 public AutoMapperEventBrokerExtension(IDestinationEventArgsTypeProvider typeProvider)
     : this(new AutoMapperMapper(), typeProvider)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MappingEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="mapper">The mapper.</param>
 /// <param name="typeProvider">The destination event argument type provider which overrides the default.</param>
 protected MappingEventBrokerExtension(IMapper mapper, IDestinationEventArgsTypeProvider typeProvider)
     : this(mapper, new DefaultTopicConvention(), typeProvider)
 {
 }
Пример #11
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)
 {
 }
Пример #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AutoMapperEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="mapper">The mapper.</param>
 /// <param name="typeProvider">The destination event argument type provider.</param>
 public AutoMapperEventBrokerExtension(IMapper mapper, IDestinationEventArgsTypeProvider typeProvider)
     : base(mapper, typeProvider)
 {
 }
Пример #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AutoMapperEventBrokerExtension"/> class.
 /// </summary>
 /// <param name="typeProvider">The destination event argument type provider.</param>
 /// <remarks>
 /// Uses the <see cref="DefaultTopicConvention"/>.
 /// </remarks>
 public AutoMapperEventBrokerExtension(IDestinationEventArgsTypeProvider typeProvider)
     : this(new AutoMapperMapper(), 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;
 }