public CloudQueueListener(string sasUri, CloudQueueSerializer serializer, Func <T, Task> callback, Func <bool> predicate) : this( CloudQueueCreationModule.GetCloudQueueReference(sasUri), serializer, callback, predicate, false) { }
public CloudQueueListener(string connectionString, string queueName, CloudQueueSerializer serializer, Func <T, Task> callback, Func <bool> predicate) : this( CloudQueueCreationModule.GetCloudQueueReference(connectionString, queueName), serializer, callback, predicate, true) { }
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; }
private CloudQueueWriter(CloudQueue queue, CloudQueueSerializer serializer, bool haveCreateQueuePermission) { this.queue = queue; this.serializer = serializer ?? throw new ArgumentNullException(nameof(serializer)); this.HaveCreateQueuePermission = haveCreateQueuePermission; }
public CloudQueueWriter(string sasUri, CloudQueueSerializer serializer) : this( CloudQueueCreationModule.GetCloudQueueReference(sasUri), serializer, false) { }
public CloudQueueWriter(string connectionString, string queueName, CloudQueueSerializer serializer) : this( CloudQueueCreationModule.GetCloudQueueReference(connectionString, queueName), serializer, true) { }
public CloudQueueListener(string sasUri, CloudQueueSerializer serializer, Func <T, Task> callback) : this(sasUri, serializer, callback, null) { }
public CloudQueueListener(string connectionString, string queueName, CloudQueueSerializer serializer, Func <T, Task> callback) : this(connectionString, queueName, serializer, callback, null) { }