Microsoft.WindowsAzure.CAT.ServiceBusExplorer.ListenerControl.GetOnMessageOptions C# (CSharp) Method

GetOnMessageOptions() private method

private GetOnMessageOptions ( ) : OnMessageOptions
return OnMessageOptions
        private OnMessageOptions GetOnMessageOptions()
        {
            // Initialize message pump options
            var options = new OnMessageOptions
            {
                // Indicates if the message-pump should call complete on messages after the callback has completed processing.
                AutoComplete = checkBoxAutoComplete.Checked,
                // Indicates the maximum number of concurrent calls to the callback the pump should initiate 
                MaxConcurrentCalls = txtMaxConcurrentCalls.IntegerValue,
                AutoRenewTimeout = TimeSpan.FromMinutes(1)
            };
            // Allows to get notified of any errors encountered by the message pump
            options.ExceptionReceived += LogErrors;
            return options;
        }
ListenerControl