public RhinoQueuesOneWayBus(MessageOwner[] messageOwners, IMessageSerializer messageSerializer, string path, bool enablePerformanceCounters, IMessageBuilder<MessagePayload> messageBuilder, QueueManagerConfiguration queueManagerConfiguration)
            : base(NullEndpoint, new EndpointRouter(), messageSerializer, 1, path, IsolationLevel.ReadCommitted, 5, enablePerformanceCounters, messageBuilder, queueManagerConfiguration)

        {
            this.messageOwners = new MessageOwnersSelector(messageOwners, new EndpointRouter());
            Start();
        }
        public SqlQueuesOneWayBus(MessageOwner[] messageOwners, IMessageSerializer messageSerializer, string connectionString, IMessageBuilder<MessagePayload> messageBuilder)
            : base(NullEndpoint, new EndpointRouter(), messageSerializer, 0, connectionString, 5, messageBuilder)

        {
            this.messageOwners = new MessageOwnersSelector(messageOwners, new EndpointRouter());
			internalStart();
			internalPostStart();
        }
Exemple #3
0
 public DefaultServiceBus(
     IServiceLocator serviceLocator,
     ITransport transport,
     ISubscriptionStorage subscriptionStorage,
     IReflection reflection,
     IMessageModule[] modules,
     MessageOwner[] messageOwners,
     IEndpointRouter endpointRouter)
 {
     this.transport           = transport;
     this.endpointRouter      = endpointRouter;
     this.messageOwners       = new MessageOwnersSelector(messageOwners, endpointRouter);
     this.subscriptionStorage = subscriptionStorage;
     this.reflection          = reflection;
     this.modules             = modules;
     this.serviceLocator      = serviceLocator;
 }
Exemple #4
0
 public SQSOneWayBus(MessageOwner[] messageOwners)
 {
     this.messageOwners = new MessageOwnersSelector(messageOwners, new EndpointRouter());
     (this as ITransport).Start();
 }
 public MsmqOnewayBus(MessageOwner[] messageOwners, IMessageBuilder<Message> messageBuilder)
 {
     this.messageOwners = new MessageOwnersSelector(messageOwners, new EndpointRouter());
     this.messageBuilder = messageBuilder;
 }
 public RhinoQueuesOneWayBus(MessageOwner[] messageOwners, IMessageSerializer messageSerializer,IMessageBuilder<MessagePayload> messageBuilder)
     : base(NullEndpoint, new EndpointRouter(), messageSerializer, 1, Path.Combine(Path.GetFullPath(AppDomain.CurrentDomain.BaseDirectory), "one_way.esent"), IsolationLevel.ReadCommitted,5,messageBuilder)
 {
     this.messageOwners = new MessageOwnersSelector(messageOwners, new EndpointRouter());
     Start();
 }
 public MsmqOnewayBus(MessageOwner[] messageOwners, IMessageBuilder<Message> messageBuilder, bool useDeadLetterQueue)
 {
     this.messageOwners = new MessageOwnersSelector(messageOwners, new EndpointRouter());
     this.messageBuilder = messageBuilder;
     _useDeadLetterQueue = useDeadLetterQueue;
 }