protected OutlookEmailBaseOperator(
            ILocalSwitchboard switchboard,
            string emailAddress,
            string password,
            int maxDequeueCount,
            SearchFilter filter         = null,
            WellKnownFolderName folder  = WellKnownFolderName.Inbox,
            SortDirection sortDirection = SortDirection.Ascending)
        {
            this.emailAddress        = emailAddress;
            this.password            = password;
            this.recieveMessagesOnly = true;
            this.filter          = filter;
            this.folder          = folder;
            this.maxDequeueCount = maxDequeueCount;
            this.sortDirection   = sortDirection;

            if (null != switchboard)
            {
                this.Switchboards.Add(switchboard);
                switchboard.Operator = this;
            }

            this.ID = 0;

            if (null == switchboard && this.recieveMessagesOnly)
            {
                throw new SwitchBoardNeededWhenRecievingMessagesException();
            }
        }
Beispiel #2
0
 internal ServiceBusQueueBaseOperator(ILocalSwitchboard switchBoard, ServiceBusQueue queue, int maxDequeueCount)
     : this(queue, true)
 {
     this.Switchboards.Add(switchBoard);
     switchBoard.Operator = this;
     this.maxDequeueCount = maxDequeueCount;
 }
 internal MsmqBaseOperator(ILocalSwitchboard switchboard, string machineName, string queueName) :
     this(machineName, queueName, QueueAccessMode.Receive)
 {
     this.Switchboards.Add(switchboard);
     switchboard.Operator     = this;
     this.recieveMessagesOnly = true;
 }
        internal HybridConnectionBaseOperator(ILocalSwitchboard switchboard, string hybridConnectionString, string hybridConnectionName, bool createConnectionIfItDoesNotExist)
        {
            connectionItems = new RelayConnectionStringBuilder(hybridConnectionString)
            {
                EntityPath = hybridConnectionName
            };
            if (String.IsNullOrEmpty(connectionItems.EntityPath))
            {
                throw new HybridConnectionNameNoSpecifiedInEntityPathException(hybridConnectionString);
            }

            this.hybridConnectionString = hybridConnectionString;
            this.hybridConnectionName   = hybridConnectionName;

            if (createConnectionIfItDoesNotExist)
            {
                CreateHybridConnectionIfDoesNotExist();
            }

            if (null != switchboard)
            {
                this.Switchboards.Add(switchboard);
                switchboard.Operator = this;
            }

            StartListener();
        }
 internal EventHubBaseOperator(ILocalSwitchboard switchBoard, EventHubDataSubscriber eventHubMsgReciever)
 {
     this.Switchboards.Add(switchBoard);
     switchBoard.Operator     = this;
     this.EventHubMsgReciever = eventHubMsgReciever;
     this.ID = 0;
 }
Beispiel #6
0
 protected StorageQueueBaseOperator(
     ILocalSwitchboard switchBoard,
     string storageConnectionString,
     string queueName,
     bool createQueueIfItDoesNotExist,
     bool recieve,
     int maxDequeueCount = DefaultDequeueMaxCount,
     TimeSpan?retrieveVisibilityTimeout = null)
     : this(switchBoard,
            GetQueueFrom(storageConnectionString, queueName, createQueueIfItDoesNotExist),
            GetDeadLetterQueueFrom(storageConnectionString, queueName),
            recieve,
            maxDequeueCount,
            retrieveVisibilityTimeout)
 {
 }
Beispiel #7
0
 protected DirectoryQueueBaseOperator(
     ILocalSwitchboard switchBoard,
     string queueDirectoryRoot,
     string queueName,
     bool createQueueIfItDoesNotExist,
     bool recieveMessagesOnly,
     int maxDequeueCount = DefaultDequeueMaxCount,
     TimeSpan?retrieveVisibilityTimeout = null)
     : this(switchBoard,
            GetQueueFrom(queueDirectoryRoot, queueName, createQueueIfItDoesNotExist),
            GetDeadLetterQueueFrom(queueDirectoryRoot, queueName),
            recieveMessagesOnly,
            maxDequeueCount,
            retrieveVisibilityTimeout)
 {
 }
Beispiel #8
0
        protected DirectoryQueueBaseOperator(
            ILocalSwitchboard switchboard,
            DirectoryQueue queue,
            DirectoryQueue deadLetterQueue,
            bool recieveMessagesOnly,
            int maxDequeueCount = DefaultDequeueMaxCount,
            TimeSpan?retrieveVisibilityTimeout = null)
        {
            this.recieveMessagesOnly = recieveMessagesOnly;
            if (null != switchboard)
            {
                this.Switchboards.Add(switchboard);
                switchboard.Operator = this;
            }
            this.ID                        = 0;
            this.queue                     = queue;
            this.deadLetterQueue           = deadLetterQueue;
            this.retrieveVisibilityTimeout = retrieveVisibilityTimeout;

            if (null == switchboard && recieveMessagesOnly)
            {
                throw new SwitchBoardNeededWhenRecievingMessagesException();
            }
        }
Beispiel #9
0
 public ServiceBusTopicSubscriptionOperator(ILocalSwitchboard switchboard, string connectionString, string topicName, bool createTopicIfItDoesNotExist)
     : base(switchboard, ServiceBusTopicPublishOperator <T> .GetTopic(connectionString, topicName, createTopicIfItDoesNotExist), DefaultDequeueMaxCount)
 {
 }
 public LocalBlockingQueueOperator(IProducerConsumerCollection <IActorMessage> collection, int boundedCapactiy, ILocalSwitchboard switchBoard)
 {
     this.collection = collection;
 }
Beispiel #11
0
 public LocalOperator(ILocalSwitchboard switchBoard)
 {
 }
Beispiel #12
0
 public LocalQueueOperator(ILocalSwitchboard switchBoard)
 {
     this.Switchboard = switchBoard;
     this.ID          = 0;
     actorMessages    = GetMessageContainer();
 }
Beispiel #13
0
 public HybridConnectionSubscriptionOperator(ILocalSwitchboard switchBoard, string hybridConnectionString, string hybridConnectionName, bool createConnectionIfItDoesNotExist = true) : base(switchBoard, hybridConnectionString, hybridConnectionName, createConnectionIfItDoesNotExist)
 {
 }
Beispiel #14
0
 public StorageQueueSubscriptionOperator(ILocalSwitchboard switchBoard, string storageConnectionString, string queueName, bool createQueueIfItDoesNotExist = true, int maxDequeueCount = DefaultDequeueMaxCount)
     : base(switchBoard, storageConnectionString, queueName, createQueueIfItDoesNotExist, true, maxDequeueCount, null)
 {
 }
 public DirectoryDeadletterQueueSubscriptionOperator(ILocalSwitchboard switchBoard, DirectoryQueue queue, DirectoryQueue deadLetterQueue, int maxDequeueCount = DefaultDequeueMaxCount, TimeSpan?retrieveVisibilityTimeout = null)
     : base(switchBoard, queue, deadLetterQueue, true, maxDequeueCount, retrieveVisibilityTimeout)
 {
 }
Beispiel #16
0
 public ServiceBusQueueDeadLetterSubscriptionOperator(ILocalSwitchboard switchBoard, string connectionString, string queueName, int maxDequeueCount = DefaultDequeueMaxCount)
     : this(switchBoard, ServiceBusQueueDeadLetterPublishOperator <T> .GetQueue(connectionString, queueName), maxDequeueCount)
 {
 }
Beispiel #17
0
 private ServiceBusQueueDeadLetterSubscriptionOperator(ILocalSwitchboard switchBoard, ServiceBusQueue queue, int maxDequeueCount)
     : base(switchBoard, queue, maxDequeueCount)
 {
 }
Beispiel #18
0
 public ServiceBusTopicDeadLetterSubscriptionOperator(ILocalSwitchboard switchBoard, string connectionString, string topicName, string subscriptionName, int maxDequeueCount = DefaultDequeueMaxCount, int prefetchCount = DefaultPrefetchCount)
     : base(switchBoard, GetSender(connectionString, topicName, subscriptionName), maxDequeueCount)
 {
 }
 public EventHubSubscriptionOperator(ILocalSwitchboard switchboard, string connectionstring, string eventHubName, string consumerGroup, string partitionId, bool createEventHubIfItDoesNotExist = false)
     : this(switchboard, GetEventHubDataReciever(connectionstring, eventHubName, consumerGroup, partitionId, createEventHubIfItDoesNotExist))
 {
 }
Beispiel #20
0
 public StorageQueueSubscriptionOperator(ILocalSwitchboard switchBoard, QueueClient queue, QueueClient deadLetterQueue, int maxDequeueCount = DefaultDequeueMaxCount, TimeSpan?retrieveVisibilityTimeout = null)
     : base(switchBoard, queue, deadLetterQueue, true, maxDequeueCount, retrieveVisibilityTimeout)
 {
 }
Beispiel #21
0
 public ServiceBusQueueSubscriptionOperator(ILocalSwitchboard switchBoard, string connectionString, string queueName, bool createQueueIfItDoesNotExist, int maxDequeueCount = DefaultDequeueMaxCount)
     : this(switchBoard, ServiceBusQueuePublishOperator <T> .GetQueue(connectionString, queueName, createQueueIfItDoesNotExist), maxDequeueCount)
 {
 }
Beispiel #22
0
 public OutlookInboxSubscriptionOperator(ILocalSwitchboard switchBoard, string emailAddress, string password, bool unreadOnly = true, int maxDequeueCount = DefaultDequeueMaxCount)
     : base(switchBoard, emailAddress, password, maxDequeueCount, GetSearchFilter(unreadOnly), WellKnownFolderName.Inbox)
 {
 }
 private EventHubSubscriptionOperator(ILocalSwitchboard switchBoard, EventHubDataSubscriber reciever)
     : base(switchBoard, reciever)
 {
 }
 public MsmqReceptionOperator(ILocalSwitchboard switchBoard, string machineName, string queueName)
     : base(switchBoard, machineName, queueName)
 {
 }
 public DirectoryDeadletterQueueSubscriptionOperator(ILocalSwitchboard switchBoard, string queueDirectoryRoot, string queueName, bool createQueueIfItDoesNotExist = true, int maxDequeueCount = DefaultDequeueMaxCount)
     : base(switchBoard, queueDirectoryRoot, queueName, createQueueIfItDoesNotExist, true, maxDequeueCount, null)
 {
 }