/// <summary> /// Initializes a new instance of the SQL Azure database-based persistence queue using the specified streaming mode, data type and buffer settings. /// </summary> /// <param name="streamingMode">The type of buffer that will be used for streaming operations.</param> /// <param name="streamingDataType">The type of data that will be used for streaming operations.</param> /// <param name="initialBufferSize">The initial size of the buffer where data is being collected before flushed into a SQL Azure database.</param> /// <param name="maxBufferSize">The maximum allowed size of the data buffer.</param> public SqlAzurePersistenceQueue(StreamingMode streamingMode, StreamingDataType streamingDataType, int initialBufferSize, int maxBufferSize) { this.streamingMode = streamingMode; this.streamingDataType = streamingDataType; this.initialBufferSize = initialBufferSize; this.maxBufferSize = maxBufferSize; this.connectionRetryPolicy = RetryPolicyFactory.GetDefaultSqlConnectionRetryPolicy(); this.commandRetryPolicy = RetryPolicyFactory.GetDefaultSqlCommandRetryPolicy(); }
/// <summary> /// Initializes a new instance of the SQL Azure database-based persistence queue using the specified streaming mode and data type. /// </summary> /// <param name="streamingMode">The type of buffer that will be used for streaming operations.</param> /// <param name="streamingDataType">The type of data that will be used for streaming operations.</param> public SqlAzurePersistenceQueue(StreamingMode streamingMode, StreamingDataType streamingDataType) : this(streamingMode, streamingDataType, DefaultInitialBufferSize, DefaultMaxBufferSize) { }