MessageGears.EventQueue.MessageGearsAwsProperties.ToString C# (CSharp) Method

ToString() public method

Dumps out all of the properties.
public ToString ( ) : String
return String
        public override String ToString()
        {
            String dump = " MessageGearsAWSCanonicalId=" + MessageGearsAWSCanonicalId;
            dump = dump + " MessageGearsAWSAccountId=" + MessageGearsAWSAccountId;
            dump = dump + " MyAWSAccountKey=" + MyAWSAccountKey;
            dump = dump + " MyAWSSecretKey=" + "<hidden>";
            dump = dump + " SQSVisibilityTimeoutSecs=" + SQSVisibilityTimeoutSecs;
            dump = dump + " S3PutTimeoutSecs=" + S3PutTimeoutSecs;
            dump = dump + " MyAWSEventQueueUrl=" + MyAWSEventQueueUrl;
            dump = dump + " NumberOfEventPollerThreads=" + NumberOfEventPollerThreads;
            dump = dump + " EmptyQueuePollingDelaySecs=" + EmptyQueuePollingDelaySecs;
            dump = dump + " SQSMaxBatchSize=" + SQSMaxBatchSize;
            dump = dump + " SQSMaxErrorRetry=" + SQSMaxErrorRetry;
            dump = dump + " S3PutTimeoutSecs=" + S3PutTimeoutSecs;
            dump = dump + " S3MaxErrorRety=" + S3MaxErrorRetry;
            dump = dump + " S3RetryDelayInterval=" + S3RetryDelayInterval;
            return dump;
        }

Usage Example

Ejemplo n.º 1
0
        /// <summary>
        /// Starts the polling thread(s) when invoked.
        /// </summary>
        public void Start()
        {
            isRunning = true;
            log.Info("Starting queue poller(s) with the following properties: " + props.ToString());

            for (int i = 1; i <= props.NumberOfEventPollerThreads; i++)
            {
                log.Info("Starting queue poller thread # " + i);
                Thread poller = new Thread(this.Run);
                poller.Start();
            }

            log.Info("Poller(s) started");
        }
MessageGearsAwsProperties