/// <summary>
        /// Initializes a new instance of the <see cref="MessageReceivingEndpoint"/> class.
        /// </summary>
        /// <param name="location">The URL of this endpoint.</param>
        /// <param name="method">The HTTP method(s) allowed.</param>
        public MessageReceivingEndpoint(Uri location, HttpDeliveryMethods method)
        {
            ErrorUtilities.VerifyArgumentNotNull(location, "location");
            ErrorUtilities.VerifyArgumentInRange(method != HttpDeliveryMethods.None, "method");
            ErrorUtilities.VerifyArgumentInRange((method & (HttpDeliveryMethods.PostRequest | HttpDeliveryMethods.GetRequest)) != 0, "method", MessagingStrings.GetOrPostFlagsRequired);

            this.Location       = location;
            this.AllowedMethods = method;
        }