예제 #1
0
 public CloudQueueListener(string sasUri, CloudQueueSerializer serializer, Func <T, Task> callback, Func <bool> predicate) : this(
         CloudQueueCreationModule.GetCloudQueueReference(sasUri),
         serializer,
         callback,
         predicate,
         false)
 {
 }
예제 #2
0
 public CloudQueueListener(string connectionString, string queueName, CloudQueueSerializer serializer, Func <T, Task> callback, Func <bool> predicate) : this(
         CloudQueueCreationModule.GetCloudQueueReference(connectionString, queueName),
         serializer,
         callback,
         predicate,
         true)
 {
 }
예제 #3
0
        private CloudQueueListener(CloudQueue queue, CloudQueueSerializer serializer, Func <T, Task> callback, Func <bool> predicate, bool haveCreateQueuePermission)
        {
            this.queue = queue;
            this.MessageReceivedCallback = callback ?? throw new ArgumentNullException(nameof(callback));
            this.serializer = serializer ?? throw new ArgumentNullException(nameof(serializer));
            if (predicate != null)
            {
                this.shouldListenPredicate = predicate;
            }

            this.haveCreateQueuePermission = haveCreateQueuePermission;
        }
예제 #4
0
 private CloudQueueWriter(CloudQueue queue, CloudQueueSerializer serializer, bool haveCreateQueuePermission)
 {
     this.queue      = queue;
     this.serializer = serializer ?? throw new ArgumentNullException(nameof(serializer));
     this.HaveCreateQueuePermission = haveCreateQueuePermission;
 }
예제 #5
0
 public CloudQueueWriter(string sasUri, CloudQueueSerializer serializer) : this(
         CloudQueueCreationModule.GetCloudQueueReference(sasUri),
         serializer,
         false)
 {
 }
예제 #6
0
 public CloudQueueWriter(string connectionString, string queueName, CloudQueueSerializer serializer) : this(
         CloudQueueCreationModule.GetCloudQueueReference(connectionString, queueName),
         serializer,
         true)
 {
 }
예제 #7
0
 public CloudQueueListener(string sasUri, CloudQueueSerializer serializer, Func <T, Task> callback) : this(sasUri, serializer, callback, null)
 {
 }
예제 #8
0
 public CloudQueueListener(string connectionString, string queueName, CloudQueueSerializer serializer, Func <T, Task> callback) : this(connectionString, queueName, serializer, callback, null)
 {
 }