Ejemplo n.º 1
0
 public ApplicationMessagePublisher InitializeENode()
 {
     _jsonSerializer       = ObjectContainer.Resolve <IJsonSerializer>();
     _messageTopicProvider = ObjectContainer.Resolve <ITopicProvider <IApplicationMessage> >();
     _typeNameProvider     = ObjectContainer.Resolve <ITypeNameProvider>();
     _sendMessageService   = new SendQueueMessageService();
     return(this);
 }
Ejemplo n.º 2
0
 public PublishableExceptionPublisher(string id = null, ProducerSetting setting = null)
 {
     _producer                  = new Producer(id ?? DefaultExceptionPublisherProcuderId, setting ?? new ProducerSetting());
     _jsonSerializer            = ObjectContainer.Resolve <IJsonSerializer>();
     _exceptionTopicProvider    = ObjectContainer.Resolve <ITopicProvider <IPublishableException> >();
     _exceptionTypeCodeProvider = ObjectContainer.Resolve <ITypeCodeProvider>();
     _sendMessageService        = new SendQueueMessageService();
 }
Ejemplo n.º 3
0
 public DomainEventPublisher(ProducerSetting setting = null)
 {
     _producer           = new Producer(setting);
     _jsonSerializer     = ObjectContainer.Resolve <IJsonSerializer>();
     _eventTopicProvider = ObjectContainer.Resolve <ITopicProvider <IDomainEvent> >();
     _eventSerializer    = ObjectContainer.Resolve <IEventSerializer>();
     _sendMessageService = new SendQueueMessageService();
 }
 public PublishableExceptionPublisher(ProducerSetting setting = null)
 {
     _producer               = new Producer(setting);
     _jsonSerializer         = ObjectContainer.Resolve <IJsonSerializer>();
     _exceptionTopicProvider = ObjectContainer.Resolve <ITopicProvider <IPublishableException> >();
     _typeNameProvider       = ObjectContainer.Resolve <ITypeNameProvider>();
     _sendMessageService     = new SendQueueMessageService();
 }
Ejemplo n.º 5
0
 public DomainExceptionPublisher InitializeENode()
 {
     _jsonSerializer         = ObjectContainer.Resolve <IJsonSerializer>();
     _exceptionTopicProvider = ObjectContainer.Resolve <ITopicProvider <IDomainException> >();
     _typeNameProvider       = ObjectContainer.Resolve <ITypeNameProvider>();
     _sendMessageService     = new SendQueueMessageService();
     return(this);
 }
Ejemplo n.º 6
0
 public ApplicationMessagePublisher(ProducerSetting setting = null)
 {
     _producer             = new Producer(setting);
     _jsonSerializer       = ObjectContainer.Resolve <IJsonSerializer>();
     _messageTopicProvider = ObjectContainer.Resolve <ITopicProvider <IApplicationMessage> >();
     _typeNameProvider     = ObjectContainer.Resolve <ITypeNameProvider>();
     _sendMessageService   = new SendQueueMessageService();
 }
Ejemplo n.º 7
0
 public ApplicationMessagePublisher(string id = null, ProducerSetting setting = null)
 {
     _producer                = new Producer(id ?? DefaultMessagePublisherProcuderId, setting ?? new ProducerSetting());
     _jsonSerializer          = ObjectContainer.Resolve <IJsonSerializer>();
     _messageTopicProvider    = ObjectContainer.Resolve <ITopicProvider <IApplicationMessage> >();
     _messageTypeCodeProvider = ObjectContainer.Resolve <ITypeCodeProvider>();
     _sendMessageService      = new SendQueueMessageService();
 }
Ejemplo n.º 8
0
 public DomainEventPublisher InitializeENode()
 {
     _jsonSerializer     = ObjectContainer.Resolve <IJsonSerializer>();
     _eventTopicProvider = ObjectContainer.Resolve <ITopicProvider <IDomainEvent> >();
     _eventSerializer    = ObjectContainer.Resolve <IEventSerializer>();
     _sendMessageService = new SendQueueMessageService();
     return(this);
 }
        public TopicFormPresenter(ITopicFormView view, ITopicProvider provider)
        {
            _view = view;
            _provider = provider;

            _view.Load += Load;
            _view.Create += Create;
            _view.Update += Update;
        }
 public PublishableExceptionPublisher InitializeENode()
 {
     _jsonSerializer         = ObjectContainer.Resolve <IJsonSerializer>();
     _exceptionTopicProvider = ObjectContainer.Resolve <ITopicProvider <IPublishableException> >();
     _typeNameProvider       = ObjectContainer.Resolve <ITypeNameProvider>();
     _logger             = ObjectContainer.Resolve <ILoggerFactory>().Create(GetType().FullName);
     _sendMessageService = new SendQueueMessageService();
     return(this);
 }
Ejemplo n.º 11
0
 public CommandService InitializeENode()
 {
     _jsonSerializer       = ObjectContainer.Resolve <IJsonSerializer>();
     _commandTopicProvider = ObjectContainer.Resolve <ITopicProvider <ICommand> >();
     _typeNameProvider     = ObjectContainer.Resolve <ITypeNameProvider>();
     _sendMessageService   = new SendQueueMessageService();
     _logger = ObjectContainer.Resolve <ILoggerFactory>().Create(GetType().FullName);
     return(this);
 }
Ejemplo n.º 12
0
 public DomainEventPublisher(string id = null, ProducerSetting setting = null)
 {
     _producer              = new Producer(id ?? DefaultEventPublisherProcuderId, setting ?? new ProducerSetting());
     _jsonSerializer        = ObjectContainer.Resolve <IJsonSerializer>();
     _eventTopicProvider    = ObjectContainer.Resolve <ITopicProvider <IDomainEvent> >();
     _eventTypeCodeProvider = ObjectContainer.Resolve <ITypeCodeProvider>();
     _eventSerializer       = ObjectContainer.Resolve <IEventSerializer>();
     _sendMessageService    = new SendQueueMessageService();
 }
 public DomainEventPublisher InitializeENode()
 {
     _jsonSerializer     = ObjectContainer.Resolve <IJsonSerializer>();
     _eventTopicProvider = ObjectContainer.Resolve <ITopicProvider <IDomainEvent> >();
     _eventSerializer    = ObjectContainer.Resolve <IEventSerializer>();
     _logger             = ObjectContainer.Resolve <ILoggerFactory>().Create(GetType().FullName);
     _sendMessageService = new SendQueueMessageService();
     return(this);
 }
Ejemplo n.º 14
0
 public CommandService(CommandResultProcessor commandResultProcessor = null, ProducerSetting setting = null)
 {
     _commandResultProcessor = commandResultProcessor;
     _producer                = new Producer(setting);
     _jsonSerializer          = ObjectContainer.Resolve <IJsonSerializer>();
     _commandTopicProvider    = ObjectContainer.Resolve <ITopicProvider <ICommand> >();
     _commandTypeCodeProvider = ObjectContainer.Resolve <ITypeCodeProvider>();
     _commandRouteKeyProvider = ObjectContainer.Resolve <ICommandRoutingKeyProvider>();
     _sendMessageService      = new SendQueueMessageService();
     _logger   = ObjectContainer.Resolve <ILoggerFactory>().Create(GetType().FullName);
     _ioHelper = ObjectContainer.Resolve <IOHelper>();
 }
Ejemplo n.º 15
0
 public CommandService(CommandResultProcessor commandResultProcessor = null, string id = null, ProducerSetting setting = null)
 {
     _commandResultProcessor = commandResultProcessor;
     _producer = new Producer(id ?? DefaultCommandServiceProcuderId, setting ?? new ProducerSetting());
     _jsonSerializer = ObjectContainer.Resolve<IJsonSerializer>();
     _commandTopicProvider = ObjectContainer.Resolve<ITopicProvider<ICommand>>();
     _commandTypeCodeProvider = ObjectContainer.Resolve<ITypeCodeProvider>();
     _commandRouteKeyProvider = ObjectContainer.Resolve<ICommandRoutingKeyProvider>();
     _sendMessageService = new SendQueueMessageService();
     _logger = ObjectContainer.Resolve<ILoggerFactory>().Create(GetType().FullName);
     _ioHelper = ObjectContainer.Resolve<IOHelper>();
 }
Ejemplo n.º 16
0
 public CommandService(CommandResultProcessor commandResultProcessor = null, string id = null, ProducerSetting setting = null)
 {
     _commandResultProcessor = commandResultProcessor;
     _producer                = new Producer(id ?? DefaultCommandServiceProcuderId, setting ?? new ProducerSetting());
     _jsonSerializer          = ObjectContainer.Resolve <IJsonSerializer>();
     _commandTopicProvider    = ObjectContainer.Resolve <ITopicProvider <ICommand> >();
     _commandTypeCodeProvider = ObjectContainer.Resolve <ITypeCodeProvider>();
     _commandRouteKeyProvider = ObjectContainer.Resolve <ICommandRoutingKeyProvider>();
     _sendMessageService      = new SendQueueMessageService();
     _logger   = ObjectContainer.Resolve <ILoggerFactory>().Create(GetType().FullName);
     _ioHelper = ObjectContainer.Resolve <IOHelper>();
     CommandExecutedMessageTopic    = DefaultCommandExecutedMessageTopic;
     DomainEventHandledMessageTopic = DefaultDomainEventHandledMessageTopic;
 }
Ejemplo n.º 17
0
 public EventReceiver(ITextSerializer serializer, ITopicProvider topicProvider)
     : base(serializer, topicProvider)
 {
 }
Ejemplo n.º 18
0
 public PublishableExceptionReceiver(ITextSerializer serializer, ITopicProvider topicProvider)
     : base(serializer, topicProvider)
 {
     constructorMap = new Dictionary <Type, ConstructorInfo>();
 }
Ejemplo n.º 19
0
 protected KafkaReceiver(ITextSerializer serializer, ITopicProvider topicProvider)
 {
     _serializer = serializer;
     _decoder    = new DefaultDecoder();
     _topic      = topicProvider.GetTopic(typeof(TDescriptor));
 }
Ejemplo n.º 20
0
 public QuerySender(ITextSerializer serializer, ITopicProvider topicProvider)
     : base(serializer, topicProvider)
 {
 }
Ejemplo n.º 21
0
 public CommandSender(ITextSerializer serializer, ITopicProvider topicProvider)
     : base(serializer, topicProvider)
 {
 }
Ejemplo n.º 22
0
 public PublishableExceptionSender(ITextSerializer serializer, ITopicProvider topicProvider)
     : base(serializer, topicProvider)
 {
 }
Ejemplo n.º 23
0
 public KafkaSender(ITextSerializer serializer, ITopicProvider topicProvider)
 {
     _serializer = serializer;
     _kind       = typeof(TMessage).FullName.Substring(1);
     _topic      = topicProvider.GetTopic(typeof(TDescriptor));
 }