Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RenewRequestMessage"/> with the supplied <paramref name="body"/> value.
        /// </summary>
        /// <remarks>
        /// Generally used with custom <see cref="RenewRequestMessageBody"/> content types.
        /// </remarks>
        /// <param name="body">The body of the subscription renew request.</param>
        public RenewRequestMessage(RenewRequestMessageBody body)
        {
            Contract.Requires <ArgumentNullException>(body != null, "body");

            this.body = body;
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RenewRequestMessage"/> class.
        /// </summary>
        /// <remarks>
        /// This overload will create the default <see cref="RenewRequestMessageBody"/> type and use to the supplied <paramref name="expires"/>
        /// information to the event source (which MAY be honored) to be applied to the subscription.
        /// </remarks>
        /// <param name="identifier">The <see cref="Identifier"/> containing the subscription information.</param>
        /// <param name="expires">The <see cref="Expires"/> containing the time when the subscription would like expiration, as requested by the subscriber.</param>
        public RenewRequestMessage(Identifier identifier, Expires expires) : this(identifier)
        {
            Contract.Requires <ArgumentNullException>(expires != null, "expires");

            this.body = new RenewRequestMessageBody(expires);
        }