コード例 #1
0
 public InitializeAsyncResult(TopicMessageBus owner, AsyncCallback callback, object state)
     : base(TimeSpan.MaxValue, callback, state)
 {
     this.owner             = owner;
     this.serviceBusFactory = new ServiceBusFactory(this.owner.connectionString);
     this.OnCompleting     += CompletingAction;
 }
コード例 #2
0
            public SendAsyncResult(TopicMessageBus owner, Message[] messages, AsyncCallback callback, object state)
                : base(TimeSpan.MaxValue, callback, state)
            {
                this.owner               = owner;
                this.messages            = messages;
                this.partitionedMessages = new Dictionary <int, List <Message> >();

                this.OnCompleting += CompletingAction;
            }
コード例 #3
0
 public InitializeAsyncResult(TopicMessageBus owner, AsyncCallback callback, object state)
     : base(TimeSpan.MaxValue, callback, state)
 {
     this.owner         = owner;
     this.OnCompleting += CompletingAction;
 }
コード例 #4
0
 public ServiceBusMessageBus(string connectionString, int partitionCount, int nodeCount, int nodeId, string topicPrefix, IDependencyResolver resolver)
     : base(resolver)
 {
     this.bus = new TopicMessageBus(connectionString, partitionCount, nodeCount, nodeId, topicPrefix, IsAnonymous, OnReceived);
 }