예제 #1
0
        /// <summary>
        /// Start building a message to a queue with the specified name.
        /// </summary>
        /// <param name="name">The name of the queue.</param>
        /// <returns>A fluent interface to build the queue message.</returns>
        public MessageBuilder Queue(string name)
        {
            // load queue, apply defaults to message
            _queueContainer = Manager.Load(name);
            _queueContainer.ApplyDefaults(_message);

            return(new MessageBuilder(_message));;
        }
        /// <summary>
        /// Start building a message to a queue with the specified name.
        /// </summary>
        /// <param name="name">The name of the queue.</param>
        /// <returns>A fluent interface to build the queue message.</returns>
        public MessageBuilder Queue(string name)
        {
            // load queue, apply defaults to message
            _queueContainer = Manager.Load(name);            
            _queueContainer.ApplyDefaults(_message);

            return new MessageBuilder(_message); ;
        }