コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GetStatusRequestMessage"/> with the supplied <paramref name="id"/> and <paramref name="body"/> values.
        /// </summary>
        /// <remarks>
        /// Generally used with custom <see cref="GetStatusRequestMessageBody"/> content types.
        /// </remarks>
        /// <param name="body">The body of the subscription status request.</param>
        public GetStatusRequestMessage(GetStatusRequestMessageBody body)
        {
            Contract.Requires <ArgumentNullException>(body != null, "body");

            this.body = body;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GetStatusRequestMessage"/> with the supplied <paramref name="id"/> and <paramref name="body"/> values.
        /// </summary>
        /// <remarks>
        /// Generally used with custom <see cref="GetStatusRequestMessageBody"/> content types.
        /// </remarks>
        /// <param name="identifier">The <see cref="Identifier"/> containing the subscription information.</param>
        /// <param name="body">The body of the subscription status request.</param>
        public GetStatusRequestMessage(Identifier identifier, GetStatusRequestMessageBody body) : this(body)
        {
            Contract.Requires <ArgumentNullException>(identifier != null, "identifier");

            this.identifier = identifier;
        }