public ApplicationMessagePublisher InitializeENode() { _jsonSerializer = ObjectContainer.Resolve <IJsonSerializer>(); _messageTopicProvider = ObjectContainer.Resolve <ITopicProvider <IApplicationMessage> >(); _typeNameProvider = ObjectContainer.Resolve <ITypeNameProvider>(); _sendMessageService = new SendQueueMessageService(); return(this); }
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(); }
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(); }
public DomainExceptionPublisher InitializeENode() { _jsonSerializer = ObjectContainer.Resolve <IJsonSerializer>(); _exceptionTopicProvider = ObjectContainer.Resolve <ITopicProvider <IDomainException> >(); _typeNameProvider = ObjectContainer.Resolve <ITypeNameProvider>(); _sendMessageService = new SendQueueMessageService(); return(this); }
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(); }
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(); }
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); }
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); }
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); }
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>(); }
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>(); }
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; }
public EventReceiver(ITextSerializer serializer, ITopicProvider topicProvider) : base(serializer, topicProvider) { }
public PublishableExceptionReceiver(ITextSerializer serializer, ITopicProvider topicProvider) : base(serializer, topicProvider) { constructorMap = new Dictionary <Type, ConstructorInfo>(); }
protected KafkaReceiver(ITextSerializer serializer, ITopicProvider topicProvider) { _serializer = serializer; _decoder = new DefaultDecoder(); _topic = topicProvider.GetTopic(typeof(TDescriptor)); }
public QuerySender(ITextSerializer serializer, ITopicProvider topicProvider) : base(serializer, topicProvider) { }
public CommandSender(ITextSerializer serializer, ITopicProvider topicProvider) : base(serializer, topicProvider) { }
public PublishableExceptionSender(ITextSerializer serializer, ITopicProvider topicProvider) : base(serializer, topicProvider) { }
public KafkaSender(ITextSerializer serializer, ITopicProvider topicProvider) { _serializer = serializer; _kind = typeof(TMessage).FullName.Substring(1); _topic = topicProvider.GetTopic(typeof(TDescriptor)); }